diff --git a/.sdk-version b/.sdk-version index 436ebfe..5af1c91 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.56.0 +v3.57.0 diff --git a/README.md b/README.md index ee403e5..b08a613 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 3.56.0 + 3.57.0 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:3.56.0" + implementation "ai.reveng:sdk:3.57.0" } ``` diff --git a/build.gradle b/build.gradle index 7e044d1..f29ccdc 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '3.56.0' +version = '3.57.0' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "3.56.0") + coordinates("ai.reveng", "sdk", "3.57.0") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index dd7152b..b539225 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "ai.reveng", name := "sdk", - version := "3.56.0", + version := "3.57.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..a9628b4 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Create a comment for this analysis @@ -42,8 +42,14 @@ public class Example { AnalysesCommentsApi apiInstance = new AnalysesCommentsApi(defaultClient); Integer analysisId = 56; // Integer | CommentBase commentBase = new CommentBase(); // CommentBase | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseCommentResponse result = apiInstance.createAnalysisComment(analysisId, commentBase); + BaseResponseCommentResponse result = apiInstance.createAnalysisComment(analysisId, commentBase, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCommentsApi#createAnalysisComment"); @@ -62,6 +68,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **commentBase** | [**CommentBase**](CommentBase.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -85,7 +97,7 @@ public class Example { # **deleteAnalysisComment** -> BaseResponseBool deleteAnalysisComment(commentId, analysisId) +> BaseResponseBool deleteAnalysisComment(commentId, analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Delete a comment @@ -115,8 +127,14 @@ public class Example { AnalysesCommentsApi apiInstance = new AnalysesCommentsApi(defaultClient); Integer commentId = 56; // Integer | Integer analysisId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseBool result = apiInstance.deleteAnalysisComment(commentId, analysisId); + BaseResponseBool result = apiInstance.deleteAnalysisComment(commentId, analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCommentsApi#deleteAnalysisComment"); @@ -135,6 +153,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **Integer**| | | | **analysisId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -159,7 +183,7 @@ public class Example { # **getAnalysisComments** -> BaseResponseListCommentResponse getAnalysisComments(analysisId) +> BaseResponseListCommentResponse getAnalysisComments(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Get comments for this analysis @@ -188,8 +212,14 @@ public class Example { AnalysesCommentsApi apiInstance = new AnalysesCommentsApi(defaultClient); Integer analysisId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseListCommentResponse result = apiInstance.getAnalysisComments(analysisId); + BaseResponseListCommentResponse result = apiInstance.getAnalysisComments(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCommentsApi#getAnalysisComments"); @@ -207,6 +237,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -229,7 +265,7 @@ public class Example { # **updateAnalysisComment** -> BaseResponseCommentResponse updateAnalysisComment(commentId, analysisId, commentUpdateRequest) +> BaseResponseCommentResponse updateAnalysisComment(commentId, analysisId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Update a comment @@ -260,8 +296,14 @@ public class Example { Integer commentId = 56; // Integer | Integer analysisId = 56; // Integer | CommentUpdateRequest commentUpdateRequest = new CommentUpdateRequest(); // CommentUpdateRequest | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseCommentResponse result = apiInstance.updateAnalysisComment(commentId, analysisId, commentUpdateRequest); + BaseResponseCommentResponse result = apiInstance.updateAnalysisComment(commentId, analysisId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCommentsApi#updateAnalysisComment"); @@ -281,6 +323,12 @@ public class Example { | **commentId** | **Integer**| | | | **analysisId** | **Integer**| | | | **commentUpdateRequest** | [**CommentUpdateRequest**](CommentUpdateRequest.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type diff --git a/docs/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index 97d800a..0984d5e 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -24,7 +24,7 @@ All URIs are relative to *https://api.reveng.ai* # **bulkAddAnalysisTags** -> BaseResponseAnalysisBulkAddTagsResponse bulkAddAnalysisTags(analysisBulkAddTagsRequest) +> BaseResponseAnalysisBulkAddTagsResponse bulkAddAnalysisTags(analysisBulkAddTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Bulk Add Analysis Tags @@ -53,8 +53,14 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest = new AnalysisBulkAddTagsRequest(); // AnalysisBulkAddTagsRequest | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseAnalysisBulkAddTagsResponse result = apiInstance.bulkAddAnalysisTags(analysisBulkAddTagsRequest); + BaseResponseAnalysisBulkAddTagsResponse result = apiInstance.bulkAddAnalysisTags(analysisBulkAddTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#bulkAddAnalysisTags"); @@ -72,6 +78,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisBulkAddTagsRequest** | [**AnalysisBulkAddTagsRequest**](AnalysisBulkAddTagsRequest.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -94,7 +106,7 @@ public class Example { # **createAnalysis** -> BaseResponseAnalysisCreateResponse createAnalysis(analysisCreateRequest, xRevEngApplication) +> BaseResponseAnalysisCreateResponse createAnalysis(analysisCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication) Create Analysis @@ -123,9 +135,15 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); AnalysisCreateRequest analysisCreateRequest = new AnalysisCreateRequest(); // AnalysisCreateRequest | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | String xRevEngApplication = "xRevEngApplication_example"; // String | try { - BaseResponseAnalysisCreateResponse result = apiInstance.createAnalysis(analysisCreateRequest, xRevEngApplication); + BaseResponseAnalysisCreateResponse result = apiInstance.createAnalysis(analysisCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#createAnalysis"); @@ -143,6 +161,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisCreateRequest** | [**AnalysisCreateRequest**](AnalysisCreateRequest.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | | **xRevEngApplication** | **String**| | [optional] | ### Return type @@ -168,7 +192,7 @@ public class Example { # **deleteAnalysis** -> BaseResponseDict deleteAnalysis(analysisId) +> BaseResponseDict deleteAnalysis(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Delete Analysis @@ -197,8 +221,14 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseDict result = apiInstance.deleteAnalysis(analysisId); + BaseResponseDict result = apiInstance.deleteAnalysis(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#deleteAnalysis"); @@ -216,6 +246,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -310,7 +346,7 @@ public class Example { # **getAnalysisFunctionMap** -> BaseResponseAnalysisFunctionMapping getAnalysisFunctionMap(analysisId) +> BaseResponseAnalysisFunctionMapping getAnalysisFunctionMap(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Get Analysis Function Map @@ -339,8 +375,14 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseAnalysisFunctionMapping result = apiInstance.getAnalysisFunctionMap(analysisId); + BaseResponseAnalysisFunctionMapping result = apiInstance.getAnalysisFunctionMap(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#getAnalysisFunctionMap"); @@ -358,6 +400,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -380,7 +428,7 @@ public class Example { # **getAnalysisLogs** -> BaseResponseLogs getAnalysisLogs(analysisId) +> BaseResponseLogs getAnalysisLogs(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Gets the logs of an analysis @@ -409,8 +457,14 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseLogs result = apiInstance.getAnalysisLogs(analysisId); + BaseResponseLogs result = apiInstance.getAnalysisLogs(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#getAnalysisLogs"); @@ -428,6 +482,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -450,7 +510,7 @@ public class Example { # **getAnalysisParams** -> BaseResponseParams getAnalysisParams(analysisId) +> BaseResponseParams getAnalysisParams(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Gets analysis param information @@ -479,8 +539,14 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseParams result = apiInstance.getAnalysisParams(analysisId); + BaseResponseParams result = apiInstance.getAnalysisParams(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#getAnalysisParams"); @@ -498,6 +564,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -590,7 +662,7 @@ public class Example { # **insertAnalysisLog** -> BaseResponse insertAnalysisLog(analysisId, insertAnalysisLogRequest) +> BaseResponse insertAnalysisLog(analysisId, insertAnalysisLogRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Insert a log entry for an analysis @@ -620,8 +692,14 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | InsertAnalysisLogRequest insertAnalysisLogRequest = new InsertAnalysisLogRequest(); // InsertAnalysisLogRequest | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponse result = apiInstance.insertAnalysisLog(analysisId, insertAnalysisLogRequest); + BaseResponse result = apiInstance.insertAnalysisLog(analysisId, insertAnalysisLogRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#insertAnalysisLog"); @@ -640,6 +718,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **insertAnalysisLogRequest** | [**InsertAnalysisLogRequest**](InsertAnalysisLogRequest.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -894,7 +978,7 @@ public class Example { # **requeueAnalysis** -> BaseResponseCreated requeueAnalysis(analysisId, reAnalysisForm, xRevEngApplication) +> BaseResponseCreated requeueAnalysis(analysisId, reAnalysisForm, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication) Requeue Analysis @@ -924,9 +1008,15 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | ReAnalysisForm reAnalysisForm = new ReAnalysisForm(); // ReAnalysisForm | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | String xRevEngApplication = "xRevEngApplication_example"; // String | try { - BaseResponseCreated result = apiInstance.requeueAnalysis(analysisId, reAnalysisForm, xRevEngApplication); + BaseResponseCreated result = apiInstance.requeueAnalysis(analysisId, reAnalysisForm, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#requeueAnalysis"); @@ -945,6 +1035,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **reAnalysisForm** | [**ReAnalysisForm**](ReAnalysisForm.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | | **xRevEngApplication** | **String**| | [optional] | ### Return type @@ -970,7 +1066,7 @@ public class Example { # **updateAnalysis** -> BaseResponseAnalysisDetailResponse updateAnalysis(analysisId, analysisUpdateRequest) +> BaseResponseAnalysisDetailResponse updateAnalysis(analysisId, analysisUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Update Analysis @@ -1000,8 +1096,14 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | AnalysisUpdateRequest analysisUpdateRequest = new AnalysisUpdateRequest(); // AnalysisUpdateRequest | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseAnalysisDetailResponse result = apiInstance.updateAnalysis(analysisId, analysisUpdateRequest); + BaseResponseAnalysisDetailResponse result = apiInstance.updateAnalysis(analysisId, analysisUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#updateAnalysis"); @@ -1020,6 +1122,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **analysisUpdateRequest** | [**AnalysisUpdateRequest**](AnalysisUpdateRequest.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -1042,7 +1150,7 @@ public class Example { # **updateAnalysisTags** -> BaseResponseAnalysisUpdateTagsResponse updateAnalysisTags(analysisId, analysisUpdateTagsRequest) +> BaseResponseAnalysisUpdateTagsResponse updateAnalysisTags(analysisId, analysisUpdateTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Update Analysis Tags @@ -1072,8 +1180,14 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | AnalysisUpdateTagsRequest analysisUpdateTagsRequest = new AnalysisUpdateTagsRequest(); // AnalysisUpdateTagsRequest | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseAnalysisUpdateTagsResponse result = apiInstance.updateAnalysisTags(analysisId, analysisUpdateTagsRequest); + BaseResponseAnalysisUpdateTagsResponse result = apiInstance.updateAnalysisTags(analysisId, analysisUpdateTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#updateAnalysisTags"); @@ -1092,6 +1206,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **analysisUpdateTagsRequest** | [**AnalysisUpdateTagsRequest**](AnalysisUpdateTagsRequest.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -1114,7 +1234,7 @@ public class Example { # **uploadFile** -> BaseResponseUploadResponse uploadFile(uploadFileType, _file, packedPassword, forceOverwrite) +> BaseResponseUploadResponse uploadFile(uploadFileType, _file, packedPassword, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, forceOverwrite) Upload File @@ -1143,9 +1263,15 @@ public class Example { UploadFileType uploadFileType = UploadFileType.fromValue("BINARY"); // UploadFileType | File _file = new File("/path/to/file"); // File | String packedPassword = "packedPassword_example"; // String | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | Boolean forceOverwrite = false; // Boolean | try { - BaseResponseUploadResponse result = apiInstance.uploadFile(uploadFileType, _file, packedPassword, forceOverwrite); + BaseResponseUploadResponse result = apiInstance.uploadFile(uploadFileType, _file, packedPassword, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, forceOverwrite); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#uploadFile"); @@ -1165,6 +1291,12 @@ public class Example { | **uploadFileType** | [**UploadFileType**](UploadFileType.md)| | [enum: BINARY, DEBUG, PACKED, FIRMWARE] | | **_file** | **File**| | | | **packedPassword** | **String**| | [optional] | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | | **forceOverwrite** | **Boolean**| | [optional] [default to false] | ### Return type diff --git a/docs/AuthenticationUsersApi.md b/docs/AuthenticationUsersApi.md index 6deed1a..0868a64 100644 --- a/docs/AuthenticationUsersApi.md +++ b/docs/AuthenticationUsersApi.md @@ -209,7 +209,7 @@ This endpoint does not need any parameter. # **getUserComments** -> BaseResponseListCommentResponse getUserComments() +> BaseResponseListCommentResponse getUserComments(endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Get comments by user @@ -237,8 +237,14 @@ public class Example { //APIKey.setApiKeyPrefix("Token"); AuthenticationUsersApi apiInstance = new AuthenticationUsersApi(defaultClient); + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseListCommentResponse result = apiInstance.getUserComments(); + BaseResponseListCommentResponse result = apiInstance.getUserComments(endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AuthenticationUsersApi#getUserComments"); @@ -252,7 +258,15 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type diff --git a/docs/BinariesApi.md b/docs/BinariesApi.md index 402bca3..460728f 100644 --- a/docs/BinariesApi.md +++ b/docs/BinariesApi.md @@ -16,7 +16,7 @@ All URIs are relative to *https://api.reveng.ai* # **downloadZippedBinary** -> File downloadZippedBinary(binaryId) +> File downloadZippedBinary(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Downloads a zipped binary with password protection @@ -43,8 +43,14 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - File result = apiInstance.downloadZippedBinary(binaryId); + File result = apiInstance.downloadZippedBinary(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#downloadZippedBinary"); @@ -62,6 +68,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -84,7 +96,7 @@ public class Example { # **getBinaryAdditionalDetails** -> BaseResponseBinaryAdditionalResponse getBinaryAdditionalDetails(binaryId) +> BaseResponseBinaryAdditionalResponse getBinaryAdditionalDetails(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Gets the additional details of a binary @@ -111,8 +123,14 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseBinaryAdditionalResponse result = apiInstance.getBinaryAdditionalDetails(binaryId); + BaseResponseBinaryAdditionalResponse result = apiInstance.getBinaryAdditionalDetails(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getBinaryAdditionalDetails"); @@ -130,6 +148,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -152,7 +176,7 @@ public class Example { # **getBinaryAdditionalDetailsStatus** -> BaseResponseAdditionalDetailsStatusResponse getBinaryAdditionalDetailsStatus(binaryId) +> BaseResponseAdditionalDetailsStatusResponse getBinaryAdditionalDetailsStatus(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Gets the status of the additional details task for a binary @@ -179,8 +203,14 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseAdditionalDetailsStatusResponse result = apiInstance.getBinaryAdditionalDetailsStatus(binaryId); + BaseResponseAdditionalDetailsStatusResponse result = apiInstance.getBinaryAdditionalDetailsStatus(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getBinaryAdditionalDetailsStatus"); @@ -198,6 +228,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -220,7 +256,7 @@ public class Example { # **getBinaryDetails** -> BaseResponseBinaryDetailsResponse getBinaryDetails(binaryId) +> BaseResponseBinaryDetailsResponse getBinaryDetails(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Gets the details of a binary @@ -247,8 +283,14 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseBinaryDetailsResponse result = apiInstance.getBinaryDetails(binaryId); + BaseResponseBinaryDetailsResponse result = apiInstance.getBinaryDetails(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getBinaryDetails"); @@ -266,6 +308,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -288,7 +336,7 @@ public class Example { # **getBinaryDieInfo** -> BaseResponseListDieMatch getBinaryDieInfo(binaryId) +> BaseResponseListDieMatch getBinaryDieInfo(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Gets the die info of a binary @@ -315,8 +363,14 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseListDieMatch result = apiInstance.getBinaryDieInfo(binaryId); + BaseResponseListDieMatch result = apiInstance.getBinaryDieInfo(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getBinaryDieInfo"); @@ -334,6 +388,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -356,7 +416,7 @@ public class Example { # **getBinaryExternals** -> BaseResponseBinaryExternalsResponse getBinaryExternals(binaryId) +> BaseResponseBinaryExternalsResponse getBinaryExternals(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Gets the external details of a binary @@ -383,8 +443,14 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseBinaryExternalsResponse result = apiInstance.getBinaryExternals(binaryId); + BaseResponseBinaryExternalsResponse result = apiInstance.getBinaryExternals(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getBinaryExternals"); @@ -402,6 +468,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -424,7 +496,7 @@ public class Example { # **getBinaryRelatedStatus** -> BaseResponseBinariesRelatedStatusResponse getBinaryRelatedStatus(binaryId) +> BaseResponseBinariesRelatedStatusResponse getBinaryRelatedStatus(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Gets the status of the unpack binary task for a binary @@ -451,8 +523,14 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseBinariesRelatedStatusResponse result = apiInstance.getBinaryRelatedStatus(binaryId); + BaseResponseBinariesRelatedStatusResponse result = apiInstance.getBinaryRelatedStatus(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getBinaryRelatedStatus"); @@ -470,6 +548,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -492,7 +576,7 @@ public class Example { # **getRelatedBinaries** -> BaseResponseChildBinariesResponse getRelatedBinaries(binaryId) +> BaseResponseChildBinariesResponse getRelatedBinaries(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Gets the related binaries of a binary. @@ -519,8 +603,14 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseChildBinariesResponse result = apiInstance.getRelatedBinaries(binaryId); + BaseResponseChildBinariesResponse result = apiInstance.getRelatedBinaries(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getRelatedBinaries"); @@ -538,6 +628,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type diff --git a/docs/FirmwareApi.md b/docs/FirmwareApi.md index 697c709..0e8e757 100644 --- a/docs/FirmwareApi.md +++ b/docs/FirmwareApi.md @@ -80,7 +80,7 @@ public class Example { # **uploadFirmware** -> Object uploadFirmware(_file, password) +> Object uploadFirmware(_file, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, password) Upload firmware for unpacking @@ -109,9 +109,15 @@ public class Example { FirmwareApi apiInstance = new FirmwareApi(defaultClient); File _file = new File("/path/to/file"); // File | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | String password = "password_example"; // String | try { - Object result = apiInstance.uploadFirmware(_file, password); + Object result = apiInstance.uploadFirmware(_file, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, password); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FirmwareApi#uploadFirmware"); @@ -129,6 +135,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **_file** | **File**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | | **password** | **String**| | [optional] | ### Return type diff --git a/docs/FunctionsAiDecompilationApi.md b/docs/FunctionsAiDecompilationApi.md index 085d653..e37d710 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Create a comment for this function @@ -47,8 +47,14 @@ public class Example { FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); Integer functionId = 56; // Integer | FunctionCommentCreateRequest functionCommentCreateRequest = new FunctionCommentCreateRequest(); // FunctionCommentCreateRequest | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseCommentResponse result = apiInstance.createAiDecompilationComment(functionId, functionCommentCreateRequest); + BaseResponseCommentResponse result = apiInstance.createAiDecompilationComment(functionId, functionCommentCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#createAiDecompilationComment"); @@ -67,6 +73,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | | **functionCommentCreateRequest** | [**FunctionCommentCreateRequest**](FunctionCommentCreateRequest.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -164,7 +176,7 @@ public class Example { # **deleteAiDecompilationComment** -> BaseResponseBool deleteAiDecompilationComment(commentId, functionId) +> BaseResponseBool deleteAiDecompilationComment(commentId, functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Delete a comment @@ -194,8 +206,14 @@ public class Example { FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); Integer commentId = 56; // Integer | Integer functionId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseBool result = apiInstance.deleteAiDecompilationComment(commentId, functionId); + BaseResponseBool result = apiInstance.deleteAiDecompilationComment(commentId, functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#deleteAiDecompilationComment"); @@ -214,6 +232,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **Integer**| | | | **functionId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -238,7 +262,7 @@ public class Example { # **getAiDecompilationComments** -> BaseResponseListCommentResponse getAiDecompilationComments(functionId) +> BaseResponseListCommentResponse getAiDecompilationComments(functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Get comments for this function @@ -267,8 +291,14 @@ public class Example { FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); Integer functionId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseListCommentResponse result = apiInstance.getAiDecompilationComments(functionId); + BaseResponseListCommentResponse result = apiInstance.getAiDecompilationComments(functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#getAiDecompilationComments"); @@ -286,6 +316,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -519,7 +555,7 @@ public class Example { # **updateAiDecompilationComment** -> BaseResponseCommentResponse updateAiDecompilationComment(commentId, functionId, commentUpdateRequest) +> BaseResponseCommentResponse updateAiDecompilationComment(commentId, functionId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Update a comment @@ -550,8 +586,14 @@ public class Example { Integer commentId = 56; // Integer | Integer functionId = 56; // Integer | CommentUpdateRequest commentUpdateRequest = new CommentUpdateRequest(); // CommentUpdateRequest | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseCommentResponse result = apiInstance.updateAiDecompilationComment(commentId, functionId, commentUpdateRequest); + BaseResponseCommentResponse result = apiInstance.updateAiDecompilationComment(commentId, functionId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#updateAiDecompilationComment"); @@ -571,6 +613,12 @@ public class Example { | **commentId** | **Integer**| | | | **functionId** | **Integer**| | | | **commentUpdateRequest** | [**CommentUpdateRequest**](CommentUpdateRequest.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type diff --git a/docs/FunctionsDecompilationApi.md b/docs/FunctionsDecompilationApi.md index f131a8a..9a9bac5 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Create a comment for this function @@ -42,8 +42,14 @@ public class Example { FunctionsDecompilationApi apiInstance = new FunctionsDecompilationApi(defaultClient); Integer functionId = 56; // Integer | FunctionCommentCreateRequest functionCommentCreateRequest = new FunctionCommentCreateRequest(); // FunctionCommentCreateRequest | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseCommentResponse result = apiInstance.createDecompilationComment(functionId, functionCommentCreateRequest); + BaseResponseCommentResponse result = apiInstance.createDecompilationComment(functionId, functionCommentCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDecompilationApi#createDecompilationComment"); @@ -62,6 +68,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | | **functionCommentCreateRequest** | [**FunctionCommentCreateRequest**](FunctionCommentCreateRequest.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -85,7 +97,7 @@ public class Example { # **deleteDecompilationComment** -> BaseResponseBool deleteDecompilationComment(commentId, functionId) +> BaseResponseBool deleteDecompilationComment(commentId, functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Delete a comment @@ -115,8 +127,14 @@ public class Example { FunctionsDecompilationApi apiInstance = new FunctionsDecompilationApi(defaultClient); Integer commentId = 56; // Integer | Integer functionId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseBool result = apiInstance.deleteDecompilationComment(commentId, functionId); + BaseResponseBool result = apiInstance.deleteDecompilationComment(commentId, functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDecompilationApi#deleteDecompilationComment"); @@ -135,6 +153,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **Integer**| | | | **functionId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -159,7 +183,7 @@ public class Example { # **getDecompilationComments** -> BaseResponseListCommentResponse getDecompilationComments(functionId) +> BaseResponseListCommentResponse getDecompilationComments(functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Get comments for this function @@ -188,8 +212,14 @@ public class Example { FunctionsDecompilationApi apiInstance = new FunctionsDecompilationApi(defaultClient); Integer functionId = 56; // Integer | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseListCommentResponse result = apiInstance.getDecompilationComments(functionId); + BaseResponseListCommentResponse result = apiInstance.getDecompilationComments(functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDecompilationApi#getDecompilationComments"); @@ -207,6 +237,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type @@ -229,7 +265,7 @@ public class Example { # **updateDecompilationComment** -> BaseResponseCommentResponse updateDecompilationComment(commentId, functionId, commentUpdateRequest) +> BaseResponseCommentResponse updateDecompilationComment(commentId, functionId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts) Update a comment @@ -260,8 +296,14 @@ public class Example { Integer commentId = 56; // Integer | Integer functionId = 56; // Integer | CommentUpdateRequest commentUpdateRequest = new CommentUpdateRequest(); // CommentUpdateRequest | + String endpointUrl = "endpointUrl_example"; // String | + String localCacheDir = "localCacheDir_example"; // String | + Integer localCacheMaxSizeMb = 56; // Integer | + String customerSamplesBucket = "customerSamplesBucket_example"; // String | + String firmwareSamplesBucket = "firmwareSamplesBucket_example"; // String | + Integer maxRetryAttempts = 5; // Integer | try { - BaseResponseCommentResponse result = apiInstance.updateDecompilationComment(commentId, functionId, commentUpdateRequest); + BaseResponseCommentResponse result = apiInstance.updateDecompilationComment(commentId, functionId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDecompilationApi#updateDecompilationComment"); @@ -281,6 +323,12 @@ public class Example { | **commentId** | **Integer**| | | | **functionId** | **Integer**| | | | **commentUpdateRequest** | [**CommentUpdateRequest**](CommentUpdateRequest.md)| | | +| **endpointUrl** | **String**| | [optional] | +| **localCacheDir** | **String**| | [optional] | +| **localCacheMaxSizeMb** | **Integer**| | [optional] | +| **customerSamplesBucket** | **String**| | [optional] | +| **firmwareSamplesBucket** | **String**| | [optional] | +| **maxRetryAttempts** | **Integer**| | [optional] [default to 5] | ### Return type diff --git a/pom.xml b/pom.xml index b8b79db..18ef3bf 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 3.56.0 + 3.57.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 18854df..e3a4e78 100644 --- a/src/main/java/ai/reveng/api/AnalysesCommentsApi.java +++ b/src/main/java/ai/reveng/api/AnalysesCommentsApi.java @@ -80,6 +80,12 @@ public void setCustomBaseUrl(String customBaseUrl) { * Build call for createAnalysisComment * @param analysisId (required) * @param commentBase (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -92,7 +98,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -118,6 +124,30 @@ public okhttp3.Call createAnalysisCommentCall(@javax.annotation.Nonnull Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -139,7 +169,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 +180,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -159,6 +189,12 @@ private okhttp3.Call createAnalysisCommentValidateBeforeCall(@javax.annotation.N * Creates a comment associated with a specified analysis). * @param analysisId (required) * @param commentBase (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +206,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = createAnalysisCommentWithHttpInfo(analysisId, commentBase, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -180,6 +216,12 @@ public BaseResponseCommentResponse createAnalysisComment(@javax.annotation.Nonnu * Creates a comment associated with a specified analysis). * @param analysisId (required) * @param commentBase (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +233,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = createAnalysisCommentValidateBeforeCall(analysisId, commentBase, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -202,6 +244,12 @@ public ApiResponse createAnalysisCommentWithHttpInf * Creates a comment associated with a specified analysis). * @param analysisId (required) * @param commentBase (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +262,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createAnalysisCommentValidateBeforeCall(analysisId, commentBase, _callback); + okhttp3.Call localVarCall = createAnalysisCommentValidateBeforeCall(analysisId, commentBase, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -225,6 +273,12 @@ public okhttp3.Call createAnalysisCommentAsync(@javax.annotation.Nonnull Integer * Build call for deleteAnalysisComment * @param commentId (required) * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -238,7 +292,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -265,6 +319,30 @@ public okhttp3.Call deleteAnalysisCommentCall(@javax.annotation.Nonnull Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -285,7 +363,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 +374,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -305,6 +383,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +401,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = deleteAnalysisCommentWithHttpInfo(commentId, analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -327,6 +411,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +429,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = deleteAnalysisCommentValidateBeforeCall(commentId, analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -350,6 +440,12 @@ public ApiResponse deleteAnalysisCommentWithHttpInfo(@javax.an * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +459,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAnalysisCommentValidateBeforeCall(commentId, analysisId, _callback); + okhttp3.Call localVarCall = deleteAnalysisCommentValidateBeforeCall(commentId, analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -373,6 +469,12 @@ public okhttp3.Call deleteAnalysisCommentAsync(@javax.annotation.Nonnull Integer /** * Build call for getAnalysisComments * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -384,7 +486,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -410,6 +512,30 @@ public okhttp3.Call getAnalysisCommentsCall(@javax.annotation.Nonnull Integer an Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -430,13 +556,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -444,6 +570,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +586,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getAnalysisCommentsWithHttpInfo(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -463,6 +595,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +611,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getAnalysisCommentsValidateBeforeCall(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -483,6 +621,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +638,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnalysisCommentsValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getAnalysisCommentsValidateBeforeCall(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -506,6 +650,12 @@ public okhttp3.Call getAnalysisCommentsAsync(@javax.annotation.Nonnull Integer a * @param commentId (required) * @param analysisId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -519,7 +669,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -546,6 +696,30 @@ public okhttp3.Call updateAnalysisCommentCall(@javax.annotation.Nonnull Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -567,7 +741,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 +757,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -593,6 +767,12 @@ private okhttp3.Call updateAnalysisCommentValidateBeforeCall(@javax.annotation.N * @param commentId (required) * @param analysisId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +785,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = updateAnalysisCommentWithHttpInfo(commentId, analysisId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -616,6 +796,12 @@ public BaseResponseCommentResponse updateAnalysisComment(@javax.annotation.Nonnu * @param commentId (required) * @param analysisId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +814,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = updateAnalysisCommentValidateBeforeCall(commentId, analysisId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -640,6 +826,12 @@ public ApiResponse updateAnalysisCommentWithHttpInf * @param commentId (required) * @param analysisId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +845,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAnalysisCommentValidateBeforeCall(commentId, analysisId, commentUpdateRequest, _callback); + okhttp3.Call localVarCall = updateAnalysisCommentValidateBeforeCall(commentId, analysisId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _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 cff6327..80a386e 100644 --- a/src/main/java/ai/reveng/api/AnalysesCoreApi.java +++ b/src/main/java/ai/reveng/api/AnalysesCoreApi.java @@ -102,6 +102,12 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for bulkAddAnalysisTags * @param analysisBulkAddTagsRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -113,7 +119,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call bulkAddAnalysisTagsCall(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call bulkAddAnalysisTagsCall(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -138,6 +144,30 @@ public okhttp3.Call bulkAddAnalysisTagsCall(@javax.annotation.Nonnull AnalysisBu Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -159,13 +189,13 @@ public okhttp3.Call bulkAddAnalysisTagsCall(@javax.annotation.Nonnull AnalysisBu } @SuppressWarnings("rawtypes") - private okhttp3.Call bulkAddAnalysisTagsValidateBeforeCall(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call bulkAddAnalysisTagsValidateBeforeCall(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisBulkAddTagsRequest' is set if (analysisBulkAddTagsRequest == null) { throw new ApiException("Missing the required parameter 'analysisBulkAddTagsRequest' when calling bulkAddAnalysisTags(Async)"); } - return bulkAddAnalysisTagsCall(analysisBulkAddTagsRequest, _callback); + return bulkAddAnalysisTagsCall(analysisBulkAddTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -173,6 +203,12 @@ private okhttp3.Call bulkAddAnalysisTagsValidateBeforeCall(@javax.annotation.Non * Bulk Add Analysis Tags * Updates analysis tags for multiple analyses. User must be the owner. * @param analysisBulkAddTagsRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseAnalysisBulkAddTagsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -183,8 +219,8 @@ private okhttp3.Call bulkAddAnalysisTagsValidateBeforeCall(@javax.annotation.Non 422 Invalid request parameters - */ - public BaseResponseAnalysisBulkAddTagsResponse bulkAddAnalysisTags(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest) throws ApiException { - ApiResponse localVarResp = bulkAddAnalysisTagsWithHttpInfo(analysisBulkAddTagsRequest); + public BaseResponseAnalysisBulkAddTagsResponse bulkAddAnalysisTags(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = bulkAddAnalysisTagsWithHttpInfo(analysisBulkAddTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -192,6 +228,12 @@ public BaseResponseAnalysisBulkAddTagsResponse bulkAddAnalysisTags(@javax.annota * Bulk Add Analysis Tags * Updates analysis tags for multiple analyses. User must be the owner. * @param analysisBulkAddTagsRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseAnalysisBulkAddTagsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -202,8 +244,8 @@ public BaseResponseAnalysisBulkAddTagsResponse bulkAddAnalysisTags(@javax.annota 422 Invalid request parameters - */ - public ApiResponse bulkAddAnalysisTagsWithHttpInfo(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest) throws ApiException { - okhttp3.Call localVarCall = bulkAddAnalysisTagsValidateBeforeCall(analysisBulkAddTagsRequest, null); + public ApiResponse bulkAddAnalysisTagsWithHttpInfo(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = bulkAddAnalysisTagsValidateBeforeCall(analysisBulkAddTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -212,6 +254,12 @@ public ApiResponse bulkAddAnalysisTagsW * Bulk Add Analysis Tags (asynchronously) * Updates analysis tags for multiple analyses. User must be the owner. * @param analysisBulkAddTagsRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -223,9 +271,9 @@ public ApiResponse bulkAddAnalysisTagsW 422 Invalid request parameters - */ - public okhttp3.Call bulkAddAnalysisTagsAsync(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call bulkAddAnalysisTagsAsync(@javax.annotation.Nonnull AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = bulkAddAnalysisTagsValidateBeforeCall(analysisBulkAddTagsRequest, _callback); + okhttp3.Call localVarCall = bulkAddAnalysisTagsValidateBeforeCall(analysisBulkAddTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -233,6 +281,12 @@ public okhttp3.Call bulkAddAnalysisTagsAsync(@javax.annotation.Nonnull AnalysisB /** * Build call for createAnalysis * @param analysisCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param xRevEngApplication (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -247,7 +301,7 @@ public okhttp3.Call bulkAddAnalysisTagsAsync(@javax.annotation.Nonnull AnalysisB 400 Bad Request - */ - public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -272,6 +326,30 @@ public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateR Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -298,13 +376,13 @@ public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateR } @SuppressWarnings("rawtypes") - private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String xRevEngApplication, 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, xRevEngApplication, _callback); + return createAnalysisCall(analysisCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication, _callback); } @@ -312,6 +390,12 @@ private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull * Create Analysis * Begins an analysis * @param analysisCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param xRevEngApplication (optional) * @return BaseResponseAnalysisCreateResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -325,8 +409,8 @@ private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull 400 Bad Request - */ - public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { - ApiResponse localVarResp = createAnalysisWithHttpInfo(analysisCreateRequest, xRevEngApplication); + public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { + ApiResponse localVarResp = createAnalysisWithHttpInfo(analysisCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication); return localVarResp.getData(); } @@ -334,6 +418,12 @@ public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnu * Create Analysis * Begins an analysis * @param analysisCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param xRevEngApplication (optional) * @return ApiResponse<BaseResponseAnalysisCreateResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -347,8 +437,8 @@ public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnu 400 Bad Request - */ - public ApiResponse createAnalysisWithHttpInfo(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { - okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, xRevEngApplication, null); + public ApiResponse createAnalysisWithHttpInfo(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { + okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -357,6 +447,12 @@ public ApiResponse createAnalysisWithHttpInf * Create Analysis (asynchronously) * Begins an analysis * @param analysisCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param xRevEngApplication (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -371,9 +467,9 @@ public ApiResponse createAnalysisWithHttpInf 400 Bad Request - */ - public okhttp3.Call createAnalysisAsync(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAnalysisAsync(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, xRevEngApplication, _callback); + okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -381,6 +477,12 @@ public okhttp3.Call createAnalysisAsync(@javax.annotation.Nonnull AnalysisCreate /** * Build call for deleteAnalysis * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -394,7 +496,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -420,6 +522,30 @@ public okhttp3.Call deleteAnalysisCall(@javax.annotation.Nonnull Integer analysi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -440,13 +566,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -454,6 +580,12 @@ private okhttp3.Call deleteAnalysisValidateBeforeCall(@javax.annotation.Nonnull * Delete Analysis * Deletes an analysis based on the provided analysis ID. * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseDict * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -466,8 +598,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = deleteAnalysisWithHttpInfo(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -475,6 +607,12 @@ public BaseResponseDict deleteAnalysis(@javax.annotation.Nonnull Integer analysi * Delete Analysis * Deletes an analysis based on the provided analysis ID. * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseDict> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -487,8 +625,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = deleteAnalysisValidateBeforeCall(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -497,6 +635,12 @@ public ApiResponse deleteAnalysisWithHttpInfo(@javax.annotatio * Delete Analysis (asynchronously) * Deletes an analysis based on the provided analysis ID. * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -510,9 +654,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAnalysisValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = deleteAnalysisValidateBeforeCall(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -651,6 +795,12 @@ public okhttp3.Call getAnalysisBasicInfoAsync(@javax.annotation.Nonnull Integer /** * Build call for getAnalysisFunctionMap * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -662,7 +812,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -688,6 +838,30 @@ public okhttp3.Call getAnalysisFunctionMapCall(@javax.annotation.Nonnull Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -708,13 +882,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -722,6 +896,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseAnalysisFunctionMapping * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -732,8 +912,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getAnalysisFunctionMapWithHttpInfo(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -741,6 +921,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseAnalysisFunctionMapping> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -751,8 +937,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getAnalysisFunctionMapValidateBeforeCall(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -761,6 +947,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -772,9 +964,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnalysisFunctionMapValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getAnalysisFunctionMapValidateBeforeCall(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -782,6 +974,12 @@ public okhttp3.Call getAnalysisFunctionMapAsync(@javax.annotation.Nonnull Intege /** * Build call for getAnalysisLogs * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -793,7 +991,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -819,6 +1017,30 @@ public okhttp3.Call getAnalysisLogsCall(@javax.annotation.Nonnull Integer analys Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -839,13 +1061,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -853,6 +1075,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseLogs * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -863,8 +1091,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getAnalysisLogsWithHttpInfo(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -872,6 +1100,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseLogs> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -882,8 +1116,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getAnalysisLogsValidateBeforeCall(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -892,6 +1126,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -903,9 +1143,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnalysisLogsValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getAnalysisLogsValidateBeforeCall(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -913,6 +1153,12 @@ public okhttp3.Call getAnalysisLogsAsync(@javax.annotation.Nonnull Integer analy /** * Build call for getAnalysisParams * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -924,7 +1170,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -950,6 +1196,30 @@ public okhttp3.Call getAnalysisParamsCall(@javax.annotation.Nonnull Integer anal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -970,13 +1240,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -984,6 +1254,12 @@ private okhttp3.Call getAnalysisParamsValidateBeforeCall(@javax.annotation.Nonnu * Gets analysis param information * Gets the params that the analysis was run with * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseParams * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -994,8 +1270,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getAnalysisParamsWithHttpInfo(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -1003,6 +1279,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseParams> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1013,8 +1295,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getAnalysisParamsValidateBeforeCall(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1023,6 +1305,12 @@ public ApiResponse getAnalysisParamsWithHttpInfo(@javax.anno * Gets analysis param information (asynchronously) * Gets the params that the analysis was run with * @param analysisId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -1034,9 +1322,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnalysisParamsValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getAnalysisParamsValidateBeforeCall(analysisId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1176,6 +1464,12 @@ public okhttp3.Call getAnalysisStatusAsync(@javax.annotation.Nonnull Integer ana * Build call for insertAnalysisLog * @param analysisId (required) * @param insertAnalysisLogRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1187,7 +1481,7 @@ public okhttp3.Call getAnalysisStatusAsync(@javax.annotation.Nonnull Integer ana 422 Invalid request parameters - */ - public okhttp3.Call insertAnalysisLogCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull InsertAnalysisLogRequest insertAnalysisLogRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call insertAnalysisLogCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull InsertAnalysisLogRequest insertAnalysisLogRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1213,6 +1507,30 @@ public okhttp3.Call insertAnalysisLogCall(@javax.annotation.Nonnull Integer anal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1234,7 +1552,7 @@ public okhttp3.Call insertAnalysisLogCall(@javax.annotation.Nonnull Integer anal } @SuppressWarnings("rawtypes") - private okhttp3.Call insertAnalysisLogValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull InsertAnalysisLogRequest insertAnalysisLogRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call insertAnalysisLogValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull InsertAnalysisLogRequest insertAnalysisLogRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 insertAnalysisLog(Async)"); @@ -1245,7 +1563,7 @@ private okhttp3.Call insertAnalysisLogValidateBeforeCall(@javax.annotation.Nonnu throw new ApiException("Missing the required parameter 'insertAnalysisLogRequest' when calling insertAnalysisLog(Async)"); } - return insertAnalysisLogCall(analysisId, insertAnalysisLogRequest, _callback); + return insertAnalysisLogCall(analysisId, insertAnalysisLogRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -1254,6 +1572,12 @@ private okhttp3.Call insertAnalysisLogValidateBeforeCall(@javax.annotation.Nonnu * Inserts a log record for an analysis. Only the analysis owner can insert logs. * @param analysisId (required) * @param insertAnalysisLogRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1264,8 +1588,8 @@ private okhttp3.Call insertAnalysisLogValidateBeforeCall(@javax.annotation.Nonnu 422 Invalid request parameters - */ - public BaseResponse insertAnalysisLog(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull InsertAnalysisLogRequest insertAnalysisLogRequest) throws ApiException { - ApiResponse localVarResp = insertAnalysisLogWithHttpInfo(analysisId, insertAnalysisLogRequest); + public BaseResponse insertAnalysisLog(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull InsertAnalysisLogRequest insertAnalysisLogRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = insertAnalysisLogWithHttpInfo(analysisId, insertAnalysisLogRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -1274,6 +1598,12 @@ public BaseResponse insertAnalysisLog(@javax.annotation.Nonnull Integer analysis * Inserts a log record for an analysis. Only the analysis owner can insert logs. * @param analysisId (required) * @param insertAnalysisLogRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1284,8 +1614,8 @@ public BaseResponse insertAnalysisLog(@javax.annotation.Nonnull Integer analysis 422 Invalid request parameters - */ - public ApiResponse insertAnalysisLogWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull InsertAnalysisLogRequest insertAnalysisLogRequest) throws ApiException { - okhttp3.Call localVarCall = insertAnalysisLogValidateBeforeCall(analysisId, insertAnalysisLogRequest, null); + public ApiResponse insertAnalysisLogWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull InsertAnalysisLogRequest insertAnalysisLogRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = insertAnalysisLogValidateBeforeCall(analysisId, insertAnalysisLogRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1295,6 +1625,12 @@ public ApiResponse insertAnalysisLogWithHttpInfo(@javax.annotation * Inserts a log record for an analysis. Only the analysis owner can insert logs. * @param analysisId (required) * @param insertAnalysisLogRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -1306,9 +1642,9 @@ public ApiResponse insertAnalysisLogWithHttpInfo(@javax.annotation 422 Invalid request parameters - */ - public okhttp3.Call insertAnalysisLogAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull InsertAnalysisLogRequest insertAnalysisLogRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call insertAnalysisLogAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull InsertAnalysisLogRequest insertAnalysisLogRequest, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = insertAnalysisLogValidateBeforeCall(analysisId, insertAnalysisLogRequest, _callback); + okhttp3.Call localVarCall = insertAnalysisLogValidateBeforeCall(analysisId, insertAnalysisLogRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1798,6 +2134,12 @@ public okhttp3.Call putAnalysisStringsAsync(@javax.annotation.Nonnull Integer an * Build call for requeueAnalysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param xRevEngApplication (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1812,7 +2154,7 @@ public okhttp3.Call putAnalysisStringsAsync(@javax.annotation.Nonnull Integer an 400 Bad Request - */ - public okhttp3.Call requeueAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { + public okhttp3.Call requeueAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1838,6 +2180,30 @@ public okhttp3.Call requeueAnalysisCall(@javax.annotation.Nonnull Integer analys Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1864,7 +2230,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, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { + private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String xRevEngApplication, 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)"); @@ -1875,7 +2241,7 @@ private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull throw new ApiException("Missing the required parameter 'reAnalysisForm' when calling requeueAnalysis(Async)"); } - return requeueAnalysisCall(analysisId, reAnalysisForm, xRevEngApplication, _callback); + return requeueAnalysisCall(analysisId, reAnalysisForm, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication, _callback); } @@ -1884,6 +2250,12 @@ private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull * Re-queues an already uploaded analysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param xRevEngApplication (optional) * @return BaseResponseCreated * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1897,8 +2269,8 @@ private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull 400 Bad Request - */ - public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { - ApiResponse localVarResp = requeueAnalysisWithHttpInfo(analysisId, reAnalysisForm, xRevEngApplication); + public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { + ApiResponse localVarResp = requeueAnalysisWithHttpInfo(analysisId, reAnalysisForm, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication); return localVarResp.getData(); } @@ -1907,6 +2279,12 @@ public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer ana * Re-queues an already uploaded analysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param xRevEngApplication (optional) * @return ApiResponse<BaseResponseCreated> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1920,8 +2298,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, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { - okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, xRevEngApplication, null); + public ApiResponse requeueAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String xRevEngApplication) throws ApiException { + okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1931,6 +2309,12 @@ public ApiResponse requeueAnalysisWithHttpInfo(@javax.annot * Re-queues an already uploaded analysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param xRevEngApplication (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1945,9 +2329,9 @@ public ApiResponse requeueAnalysisWithHttpInfo(@javax.annot 400 Bad Request - */ - public okhttp3.Call requeueAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { + public okhttp3.Call requeueAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, xRevEngApplication, _callback); + okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1956,6 +2340,12 @@ public okhttp3.Call requeueAnalysisAsync(@javax.annotation.Nonnull Integer analy * Build call for updateAnalysis * @param analysisId (required) * @param analysisUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1967,7 +2357,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1993,6 +2383,30 @@ public okhttp3.Call updateAnalysisCall(@javax.annotation.Nonnull Integer analysi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -2014,7 +2428,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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)"); @@ -2025,7 +2439,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -2034,6 +2448,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseAnalysisDetailResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2044,8 +2464,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = updateAnalysisWithHttpInfo(analysisId, analysisUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -2054,6 +2474,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseAnalysisDetailResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2064,8 +2490,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = updateAnalysisValidateBeforeCall(analysisId, analysisUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2075,6 +2501,12 @@ public ApiResponse updateAnalysisWithHttpInf * Updates analysis attributes (binary_name, analysis_scope). User must be the owner. * @param analysisId (required) * @param analysisUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -2086,9 +2518,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAnalysisValidateBeforeCall(analysisId, analysisUpdateRequest, _callback); + okhttp3.Call localVarCall = updateAnalysisValidateBeforeCall(analysisId, analysisUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2097,6 +2529,12 @@ public okhttp3.Call updateAnalysisAsync(@javax.annotation.Nonnull Integer analys * Build call for updateAnalysisTags * @param analysisId (required) * @param analysisUpdateTagsRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2108,7 +2546,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2134,6 +2572,30 @@ public okhttp3.Call updateAnalysisTagsCall(@javax.annotation.Nonnull Integer ana Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -2155,7 +2617,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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)"); @@ -2166,7 +2628,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -2175,6 +2637,12 @@ private okhttp3.Call updateAnalysisTagsValidateBeforeCall(@javax.annotation.Nonn * Updates analysis tags. User must be the owner. * @param analysisId (required) * @param analysisUpdateTagsRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseAnalysisUpdateTagsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2185,8 +2653,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = updateAnalysisTagsWithHttpInfo(analysisId, analysisUpdateTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -2195,6 +2663,12 @@ public BaseResponseAnalysisUpdateTagsResponse updateAnalysisTags(@javax.annotati * Updates analysis tags. User must be the owner. * @param analysisId (required) * @param analysisUpdateTagsRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseAnalysisUpdateTagsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2205,8 +2679,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = updateAnalysisTagsValidateBeforeCall(analysisId, analysisUpdateTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2216,6 +2690,12 @@ public ApiResponse updateAnalysisTagsWit * Updates analysis tags. User must be the owner. * @param analysisId (required) * @param analysisUpdateTagsRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -2227,9 +2707,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAnalysisTagsValidateBeforeCall(analysisId, analysisUpdateTagsRequest, _callback); + okhttp3.Call localVarCall = updateAnalysisTagsValidateBeforeCall(analysisId, analysisUpdateTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2239,6 +2719,12 @@ public okhttp3.Call updateAnalysisTagsAsync(@javax.annotation.Nonnull Integer an * @param uploadFileType (required) * @param _file (required) * @param packedPassword (optional) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param forceOverwrite (optional, default to false) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2251,7 +2737,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2292,6 +2778,30 @@ public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uplo localVarQueryParams.addAll(localVarApiClient.parameterToPair("packed_password", packedPassword)); } + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -2313,7 +2823,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @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)"); @@ -2324,7 +2834,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, forceOverwrite, _callback); } @@ -2334,6 +2844,12 @@ private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Uplo * @param uploadFileType (required) * @param _file (required) * @param packedPassword (optional) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -2345,8 +2861,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException { + ApiResponse localVarResp = uploadFileWithHttpInfo(uploadFileType, _file, packedPassword, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, forceOverwrite); return localVarResp.getData(); } @@ -2356,6 +2872,12 @@ public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull UploadFil * @param uploadFileType (required) * @param _file (required) * @param packedPassword (optional) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -2367,8 +2889,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException { + okhttp3.Call localVarCall = uploadFileValidateBeforeCall(uploadFileType, _file, packedPassword, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, forceOverwrite, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2379,6 +2901,12 @@ public ApiResponse uploadFileWithHttpInfo(@javax.ann * @param uploadFileType (required) * @param _file (required) * @param packedPassword (optional) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param forceOverwrite (optional, default to false) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2391,9 +2919,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, forceOverwrite, _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 8755002..c772851 100644 --- a/src/main/java/ai/reveng/api/AuthenticationUsersApi.java +++ b/src/main/java/ai/reveng/api/AuthenticationUsersApi.java @@ -452,6 +452,12 @@ 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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -488,6 +494,30 @@ public okhttp3.Call getUserCommentsCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -508,14 +538,20 @@ 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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { + return getUserCommentsCall(endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +562,20 @@ 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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getUserCommentsWithHttpInfo(endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +586,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getUserCommentsValidateBeforeCall(endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -553,6 +595,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +612,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserCommentsValidateBeforeCall(_callback); + okhttp3.Call localVarCall = getUserCommentsValidateBeforeCall(endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _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 1eb4d4d..f8f569e 100644 --- a/src/main/java/ai/reveng/api/BinariesApi.java +++ b/src/main/java/ai/reveng/api/BinariesApi.java @@ -82,6 +82,12 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for downloadZippedBinary * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -93,7 +99,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -119,6 +125,30 @@ public okhttp3.Call downloadZippedBinaryCall(@javax.annotation.Nonnull Integer b Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/zip", "application/json" @@ -140,13 +170,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -154,6 +184,12 @@ private okhttp3.Call downloadZippedBinaryValidateBeforeCall(@javax.annotation.No * Downloads a zipped binary with password protection * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -164,8 +200,8 @@ private okhttp3.Call downloadZippedBinaryValidateBeforeCall(@javax.annotation.No 422 Invalid request parameters - */ - public File downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - ApiResponse localVarResp = downloadZippedBinaryWithHttpInfo(binaryId); + public File downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = downloadZippedBinaryWithHttpInfo(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -173,6 +209,12 @@ public File downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId) thr * Downloads a zipped binary with password protection * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -183,8 +225,8 @@ public File downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId) thr 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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = downloadZippedBinaryValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -193,6 +235,12 @@ public ApiResponse downloadZippedBinaryWithHttpInfo(@javax.annotation.Nonn * Downloads a zipped binary with password protection (asynchronously) * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -204,9 +252,9 @@ public ApiResponse downloadZippedBinaryWithHttpInfo(@javax.annotation.Nonn 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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = downloadZippedBinaryValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = downloadZippedBinaryValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -214,6 +262,12 @@ public okhttp3.Call downloadZippedBinaryAsync(@javax.annotation.Nonnull Integer /** * Build call for getBinaryAdditionalDetails * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -225,7 +279,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -251,6 +305,30 @@ public okhttp3.Call getBinaryAdditionalDetailsCall(@javax.annotation.Nonnull Int Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -271,13 +349,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -285,6 +363,12 @@ private okhttp3.Call getBinaryAdditionalDetailsValidateBeforeCall(@javax.annotat * Gets the additional details of a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseBinaryAdditionalResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -295,8 +379,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getBinaryAdditionalDetailsWithHttpInfo(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -304,6 +388,12 @@ public BaseResponseBinaryAdditionalResponse getBinaryAdditionalDetails(@javax.an * Gets the additional details of a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseBinaryAdditionalResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -314,8 +404,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getBinaryAdditionalDetailsValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -324,6 +414,12 @@ public ApiResponse getBinaryAdditionalDeta * Gets the additional details of a binary (asynchronously) * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -335,9 +431,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBinaryAdditionalDetailsValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getBinaryAdditionalDetailsValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -345,6 +441,12 @@ public okhttp3.Call getBinaryAdditionalDetailsAsync(@javax.annotation.Nonnull In /** * Build call for getBinaryAdditionalDetailsStatus * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -356,7 +458,7 @@ public okhttp3.Call getBinaryAdditionalDetailsAsync(@javax.annotation.Nonnull In 422 Invalid request parameters - */ - public okhttp3.Call getBinaryAdditionalDetailsStatusCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryAdditionalDetailsStatusCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -382,6 +484,30 @@ public okhttp3.Call getBinaryAdditionalDetailsStatusCall(@javax.annotation.Nonnu Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -402,13 +528,13 @@ public okhttp3.Call getBinaryAdditionalDetailsStatusCall(@javax.annotation.Nonnu } @SuppressWarnings("rawtypes") - private okhttp3.Call getBinaryAdditionalDetailsStatusValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBinaryAdditionalDetailsStatusValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 getBinaryAdditionalDetailsStatus(Async)"); } - return getBinaryAdditionalDetailsStatusCall(binaryId, _callback); + return getBinaryAdditionalDetailsStatusCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -416,6 +542,12 @@ private okhttp3.Call getBinaryAdditionalDetailsStatusValidateBeforeCall(@javax.a * Gets the status of the additional details task for a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseAdditionalDetailsStatusResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -426,8 +558,8 @@ private okhttp3.Call getBinaryAdditionalDetailsStatusValidateBeforeCall(@javax.a 422 Invalid request parameters - */ - public BaseResponseAdditionalDetailsStatusResponse getBinaryAdditionalDetailsStatus(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - ApiResponse localVarResp = getBinaryAdditionalDetailsStatusWithHttpInfo(binaryId); + public BaseResponseAdditionalDetailsStatusResponse getBinaryAdditionalDetailsStatus(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getBinaryAdditionalDetailsStatusWithHttpInfo(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -435,6 +567,12 @@ public BaseResponseAdditionalDetailsStatusResponse getBinaryAdditionalDetailsSta * Gets the status of the additional details task for a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseAdditionalDetailsStatusResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -445,8 +583,8 @@ public BaseResponseAdditionalDetailsStatusResponse getBinaryAdditionalDetailsSta 422 Invalid request parameters - */ - public ApiResponse getBinaryAdditionalDetailsStatusWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - okhttp3.Call localVarCall = getBinaryAdditionalDetailsStatusValidateBeforeCall(binaryId, null); + public ApiResponse getBinaryAdditionalDetailsStatusWithHttpInfo(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getBinaryAdditionalDetailsStatusValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -455,6 +593,12 @@ public ApiResponse getBinaryAdditio * Gets the status of the additional details task for a binary (asynchronously) * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -466,9 +610,9 @@ public ApiResponse getBinaryAdditio 422 Invalid request parameters - */ - public okhttp3.Call getBinaryAdditionalDetailsStatusAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryAdditionalDetailsStatusAsync(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBinaryAdditionalDetailsStatusValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getBinaryAdditionalDetailsStatusValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -476,6 +620,12 @@ public okhttp3.Call getBinaryAdditionalDetailsStatusAsync(@javax.annotation.Nonn /** * Build call for getBinaryDetails * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -487,7 +637,7 @@ public okhttp3.Call getBinaryAdditionalDetailsStatusAsync(@javax.annotation.Nonn 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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -513,6 +663,30 @@ public okhttp3.Call getBinaryDetailsCall(@javax.annotation.Nonnull Integer binar Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -533,13 +707,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -547,6 +721,12 @@ private okhttp3.Call getBinaryDetailsValidateBeforeCall(@javax.annotation.Nonnul * Gets the details of a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseBinaryDetailsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -557,8 +737,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getBinaryDetailsWithHttpInfo(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -566,6 +746,12 @@ public BaseResponseBinaryDetailsResponse getBinaryDetails(@javax.annotation.Nonn * Gets the details of a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseBinaryDetailsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -576,8 +762,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getBinaryDetailsValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -586,6 +772,12 @@ public ApiResponse getBinaryDetailsWithHttpIn * Gets the details of a binary (asynchronously) * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -597,9 +789,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBinaryDetailsValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getBinaryDetailsValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -607,6 +799,12 @@ public okhttp3.Call getBinaryDetailsAsync(@javax.annotation.Nonnull Integer bina /** * Build call for getBinaryDieInfo * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -618,7 +816,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -644,6 +842,30 @@ public okhttp3.Call getBinaryDieInfoCall(@javax.annotation.Nonnull Integer binar Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -664,13 +886,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -678,6 +900,12 @@ private okhttp3.Call getBinaryDieInfoValidateBeforeCall(@javax.annotation.Nonnul * Gets the die info of a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseListDieMatch * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -688,8 +916,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getBinaryDieInfoWithHttpInfo(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -697,6 +925,12 @@ public BaseResponseListDieMatch getBinaryDieInfo(@javax.annotation.Nonnull Integ * Gets the die info of a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseListDieMatch> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -707,8 +941,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getBinaryDieInfoValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -717,6 +951,12 @@ public ApiResponse getBinaryDieInfoWithHttpInfo(@javax * Gets the die info of a binary (asynchronously) * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -728,9 +968,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBinaryDieInfoValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getBinaryDieInfoValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -738,6 +978,12 @@ public okhttp3.Call getBinaryDieInfoAsync(@javax.annotation.Nonnull Integer bina /** * Build call for getBinaryExternals * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -749,7 +995,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -775,6 +1021,30 @@ public okhttp3.Call getBinaryExternalsCall(@javax.annotation.Nonnull Integer bin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -795,13 +1065,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -809,6 +1079,12 @@ private okhttp3.Call getBinaryExternalsValidateBeforeCall(@javax.annotation.Nonn * Gets the external details of a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseBinaryExternalsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -819,8 +1095,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getBinaryExternalsWithHttpInfo(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -828,6 +1104,12 @@ public BaseResponseBinaryExternalsResponse getBinaryExternals(@javax.annotation. * Gets the external details of a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseBinaryExternalsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -838,8 +1120,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getBinaryExternalsValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -848,6 +1130,12 @@ public ApiResponse getBinaryExternalsWithHt * Gets the external details of a binary (asynchronously) * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +1147,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBinaryExternalsValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getBinaryExternalsValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -869,6 +1157,12 @@ public okhttp3.Call getBinaryExternalsAsync(@javax.annotation.Nonnull Integer bi /** * Build call for getBinaryRelatedStatus * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -880,7 +1174,7 @@ public okhttp3.Call getBinaryExternalsAsync(@javax.annotation.Nonnull Integer bi 422 Invalid request parameters - */ - public okhttp3.Call getBinaryRelatedStatusCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryRelatedStatusCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -906,6 +1200,30 @@ public okhttp3.Call getBinaryRelatedStatusCall(@javax.annotation.Nonnull Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -926,13 +1244,13 @@ public okhttp3.Call getBinaryRelatedStatusCall(@javax.annotation.Nonnull Integer } @SuppressWarnings("rawtypes") - private okhttp3.Call getBinaryRelatedStatusValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBinaryRelatedStatusValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 getBinaryRelatedStatus(Async)"); } - return getBinaryRelatedStatusCall(binaryId, _callback); + return getBinaryRelatedStatusCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -940,6 +1258,12 @@ private okhttp3.Call getBinaryRelatedStatusValidateBeforeCall(@javax.annotation. * Gets the status of the unpack binary task for a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseBinariesRelatedStatusResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -950,8 +1274,8 @@ private okhttp3.Call getBinaryRelatedStatusValidateBeforeCall(@javax.annotation. 422 Invalid request parameters - */ - public BaseResponseBinariesRelatedStatusResponse getBinaryRelatedStatus(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - ApiResponse localVarResp = getBinaryRelatedStatusWithHttpInfo(binaryId); + public BaseResponseBinariesRelatedStatusResponse getBinaryRelatedStatus(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getBinaryRelatedStatusWithHttpInfo(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -959,6 +1283,12 @@ public BaseResponseBinariesRelatedStatusResponse getBinaryRelatedStatus(@javax.a * Gets the status of the unpack binary task for a binary * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseBinariesRelatedStatusResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -969,8 +1299,8 @@ public BaseResponseBinariesRelatedStatusResponse getBinaryRelatedStatus(@javax.a 422 Invalid request parameters - */ - public ApiResponse getBinaryRelatedStatusWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - okhttp3.Call localVarCall = getBinaryRelatedStatusValidateBeforeCall(binaryId, null); + public ApiResponse getBinaryRelatedStatusWithHttpInfo(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getBinaryRelatedStatusValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -979,6 +1309,12 @@ public ApiResponse getBinaryRelatedSt * Gets the status of the unpack binary task for a binary (asynchronously) * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -990,9 +1326,9 @@ public ApiResponse getBinaryRelatedSt 422 Invalid request parameters - */ - public okhttp3.Call getBinaryRelatedStatusAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryRelatedStatusAsync(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBinaryRelatedStatusValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getBinaryRelatedStatusValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1000,6 +1336,12 @@ public okhttp3.Call getBinaryRelatedStatusAsync(@javax.annotation.Nonnull Intege /** * Build call for getRelatedBinaries * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1012,7 +1354,7 @@ public okhttp3.Call getBinaryRelatedStatusAsync(@javax.annotation.Nonnull Intege 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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1038,6 +1380,30 @@ public okhttp3.Call getRelatedBinariesCall(@javax.annotation.Nonnull Integer bin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1058,13 +1424,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -1072,6 +1438,12 @@ private okhttp3.Call getRelatedBinariesValidateBeforeCall(@javax.annotation.Nonn * Gets the related binaries of a binary. * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return BaseResponseChildBinariesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1083,8 +1455,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getRelatedBinariesWithHttpInfo(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -1092,6 +1464,12 @@ public BaseResponseChildBinariesResponse getRelatedBinaries(@javax.annotation.No * Gets the related binaries of a binary. * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @return ApiResponse<BaseResponseChildBinariesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1103,8 +1481,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getRelatedBinariesValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1113,6 +1491,12 @@ public ApiResponse getRelatedBinariesWithHttp * Gets the related binaries of a binary. (asynchronously) * * @param binaryId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 @@ -1125,9 +1509,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getRelatedBinariesValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getRelatedBinariesValidateBeforeCall(binaryId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _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 fba276a..d7353f7 100644 --- a/src/main/java/ai/reveng/api/FirmwareApi.java +++ b/src/main/java/ai/reveng/api/FirmwareApi.java @@ -206,6 +206,12 @@ public okhttp3.Call getBinariesForFirmwareTaskAsync(@javax.annotation.Nonnull St /** * Build call for uploadFirmware * @param _file (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param password (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -219,7 +225,7 @@ public okhttp3.Call getBinariesForFirmwareTaskAsync(@javax.annotation.Nonnull St 500 Internal Server Error - */ - 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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String password, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -252,6 +258,30 @@ public okhttp3.Call uploadFirmwareCall(@javax.annotation.Nonnull File _file, @ja localVarFormParams.put("password", password); } + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -273,13 +303,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, password, _callback); } @@ -287,6 +317,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param password (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -299,8 +335,8 @@ private okhttp3.Call uploadFirmwareValidateBeforeCall(@javax.annotation.Nonnull 500 Internal Server Error - */ - 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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String password) throws ApiException { + ApiResponse localVarResp = uploadFirmwareWithHttpInfo(_file, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, password); return localVarResp.getData(); } @@ -308,6 +344,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param password (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -320,8 +362,8 @@ public Object uploadFirmware(@javax.annotation.Nonnull File _file, @javax.annota 500 Internal Server Error - */ - 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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String password) throws ApiException { + okhttp3.Call localVarCall = uploadFirmwareValidateBeforeCall(_file, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, password, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -330,6 +372,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param password (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -343,9 +391,9 @@ public ApiResponse uploadFirmwareWithHttpInfo(@javax.annotation.Nonnull 500 Internal Server Error - */ - 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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, @javax.annotation.Nullable String password, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = uploadFirmwareValidateBeforeCall(_file, password, _callback); + okhttp3.Call localVarCall = uploadFirmwareValidateBeforeCall(_file, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, 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 42aa01b..aee6126 100644 --- a/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java +++ b/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java @@ -84,6 +84,12 @@ public void setCustomBaseUrl(String customBaseUrl) { * Build call for createAiDecompilationComment * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -96,7 +102,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -122,6 +128,30 @@ public okhttp3.Call createAiDecompilationCommentCall(@javax.annotation.Nonnull I Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -143,7 +173,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 +184,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -163,6 +193,12 @@ private okhttp3.Call createAiDecompilationCommentValidateBeforeCall(@javax.annot * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +210,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = createAiDecompilationCommentWithHttpInfo(functionId, functionCommentCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -184,6 +220,12 @@ public BaseResponseCommentResponse createAiDecompilationComment(@javax.annotatio * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +237,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = createAiDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -206,6 +248,12 @@ public ApiResponse createAiDecompilationCommentWith * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +266,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createAiDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, _callback); + okhttp3.Call localVarCall = createAiDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -376,6 +424,12 @@ public okhttp3.Call createAiDecompilationTaskAsync(@javax.annotation.Nonnull Lon * Build call for deleteAiDecompilationComment * @param commentId (required) * @param functionId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -389,7 +443,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -416,6 +470,30 @@ public okhttp3.Call deleteAiDecompilationCommentCall(@javax.annotation.Nonnull I Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -436,7 +514,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 +525,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -456,6 +534,12 @@ private okhttp3.Call deleteAiDecompilationCommentValidateBeforeCall(@javax.annot * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param functionId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +552,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = deleteAiDecompilationCommentWithHttpInfo(commentId, functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -478,6 +562,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +580,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = deleteAiDecompilationCommentValidateBeforeCall(commentId, functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -501,6 +591,12 @@ public ApiResponse deleteAiDecompilationCommentWithHttpInfo(@j * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param functionId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +610,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAiDecompilationCommentValidateBeforeCall(commentId, functionId, _callback); + okhttp3.Call localVarCall = deleteAiDecompilationCommentValidateBeforeCall(commentId, functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -524,6 +620,12 @@ public okhttp3.Call deleteAiDecompilationCommentAsync(@javax.annotation.Nonnull /** * Build call for getAiDecompilationComments * @param functionId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -535,7 +637,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -561,6 +663,30 @@ public okhttp3.Call getAiDecompilationCommentsCall(@javax.annotation.Nonnull Int Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -581,13 +707,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -595,6 +721,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +737,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getAiDecompilationCommentsWithHttpInfo(functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -614,6 +746,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +762,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getAiDecompilationCommentsValidateBeforeCall(functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -634,6 +772,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +789,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAiDecompilationCommentsValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = getAiDecompilationCommentsValidateBeforeCall(functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1070,6 +1214,12 @@ public okhttp3.Call getAiDecompilationTaskStatusAsync(@javax.annotation.Nonnull * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1083,7 +1233,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1110,6 +1260,30 @@ public okhttp3.Call updateAiDecompilationCommentCall(@javax.annotation.Nonnull I Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1131,7 +1305,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 +1321,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -1157,6 +1331,12 @@ private okhttp3.Call updateAiDecompilationCommentValidateBeforeCall(@javax.annot * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +1349,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = updateAiDecompilationCommentWithHttpInfo(commentId, functionId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -1180,6 +1360,12 @@ public BaseResponseCommentResponse updateAiDecompilationComment(@javax.annotatio * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +1378,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = updateAiDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1204,6 +1390,12 @@ public ApiResponse updateAiDecompilationCommentWith * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +1409,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAiDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, _callback); + okhttp3.Call localVarCall = updateAiDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _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 54ca79b..2ecc87e 100644 --- a/src/main/java/ai/reveng/api/FunctionsDecompilationApi.java +++ b/src/main/java/ai/reveng/api/FunctionsDecompilationApi.java @@ -80,6 +80,12 @@ public void setCustomBaseUrl(String customBaseUrl) { * Build call for createDecompilationComment * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -92,7 +98,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -118,6 +124,30 @@ public okhttp3.Call createDecompilationCommentCall(@javax.annotation.Nonnull Int Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -139,7 +169,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 +180,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -159,6 +189,12 @@ private okhttp3.Call createDecompilationCommentValidateBeforeCall(@javax.annotat * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +206,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = createDecompilationCommentWithHttpInfo(functionId, functionCommentCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -180,6 +216,12 @@ public BaseResponseCommentResponse createDecompilationComment(@javax.annotation. * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +233,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = createDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -202,6 +244,12 @@ public ApiResponse createDecompilationCommentWithHt * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +262,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, _callback); + okhttp3.Call localVarCall = createDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -225,6 +273,12 @@ public okhttp3.Call createDecompilationCommentAsync(@javax.annotation.Nonnull In * Build call for deleteDecompilationComment * @param commentId (required) * @param functionId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -238,7 +292,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -265,6 +319,30 @@ public okhttp3.Call deleteDecompilationCommentCall(@javax.annotation.Nonnull Int Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -285,7 +363,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 +374,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -305,6 +383,12 @@ private okhttp3.Call deleteDecompilationCommentValidateBeforeCall(@javax.annotat * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param functionId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +401,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = deleteDecompilationCommentWithHttpInfo(commentId, functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -327,6 +411,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +429,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = deleteDecompilationCommentValidateBeforeCall(commentId, functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -350,6 +440,12 @@ public ApiResponse deleteDecompilationCommentWithHttpInfo(@jav * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param functionId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +459,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteDecompilationCommentValidateBeforeCall(commentId, functionId, _callback); + okhttp3.Call localVarCall = deleteDecompilationCommentValidateBeforeCall(commentId, functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -373,6 +469,12 @@ public okhttp3.Call deleteDecompilationCommentAsync(@javax.annotation.Nonnull In /** * Build call for getDecompilationComments * @param functionId (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -384,7 +486,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -410,6 +512,30 @@ public okhttp3.Call getDecompilationCommentsCall(@javax.annotation.Nonnull Integ Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -430,13 +556,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -444,6 +570,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +586,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = getDecompilationCommentsWithHttpInfo(functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -463,6 +595,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +611,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = getDecompilationCommentsValidateBeforeCall(functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -483,6 +621,12 @@ 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 endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +638,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getDecompilationCommentsValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = getDecompilationCommentsValidateBeforeCall(functionId, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -506,6 +650,12 @@ public okhttp3.Call getDecompilationCommentsAsync(@javax.annotation.Nonnull Inte * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -519,7 +669,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -546,6 +696,30 @@ public okhttp3.Call updateDecompilationCommentCall(@javax.annotation.Nonnull Int Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (endpointUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endpoint_url", endpointUrl)); + } + + if (localCacheDir != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_dir", localCacheDir)); + } + + if (localCacheMaxSizeMb != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("local_cache_max_size_mb", localCacheMaxSizeMb)); + } + + if (customerSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("customer_samples_bucket", customerSamplesBucket)); + } + + if (firmwareSamplesBucket != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("firmware_samples_bucket", firmwareSamplesBucket)); + } + + if (maxRetryAttempts != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_retry_attempts", maxRetryAttempts)); + } + final String[] localVarAccepts = { "application/json" }; @@ -567,7 +741,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, 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 +757,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, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _callback); } @@ -593,6 +767,12 @@ private okhttp3.Call updateDecompilationCommentValidateBeforeCall(@javax.annotat * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +785,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + ApiResponse localVarResp = updateDecompilationCommentWithHttpInfo(commentId, functionId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts); return localVarResp.getData(); } @@ -616,6 +796,12 @@ public BaseResponseCommentResponse updateDecompilationComment(@javax.annotation. * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +814,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts) throws ApiException { + okhttp3.Call localVarCall = updateDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -640,6 +826,12 @@ public ApiResponse updateDecompilationCommentWithHt * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param endpointUrl (optional) + * @param localCacheDir (optional) + * @param localCacheMaxSizeMb (optional) + * @param customerSamplesBucket (optional) + * @param firmwareSamplesBucket (optional) + * @param maxRetryAttempts (optional, default to 5) * @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 +845,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 endpointUrl, @javax.annotation.Nullable String localCacheDir, @javax.annotation.Nullable Integer localCacheMaxSizeMb, @javax.annotation.Nullable String customerSamplesBucket, @javax.annotation.Nullable String firmwareSamplesBucket, @javax.annotation.Nullable Integer maxRetryAttempts, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, _callback); + okhttp3.Call localVarCall = updateDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _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 f4eda70..afcab8b 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/3.56.0/java"); + setUserAgent("OpenAPI-Generator/3.57.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 8e79734..523a7c9 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 = "3.56.0"; + public static final String VERSION = "3.57.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new;