diff --git a/.sdk-version b/.sdk-version
index cee6f27..9f94b80 100644
--- a/.sdk-version
+++ b/.sdk-version
@@ -1 +1 @@
-v2.11.7
+v2.12.0
diff --git a/README.md b/README.md
index a205820..2029ecc 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Add this dependency to your project's POM:
ai.reveng
sdk
- 2.11.7
+ 2.12.0
compile
```
@@ -31,7 +31,7 @@ repositories {
}
dependencies {
- implementation "ai.reveng:sdk:2.11.7"
+ implementation "ai.reveng:sdk:2.12.0"
}
```
diff --git a/build.gradle b/build.gradle
index 1279e7c..8b46497 100644
--- a/build.gradle
+++ b/build.gradle
@@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'
group = 'ai.reveng'
-version = '2.11.7'
+version = '2.12.0'
@@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()
- coordinates("ai.reveng", "sdk", "2.11.7")
+ coordinates("ai.reveng", "sdk", "2.12.0")
pom {
name = "sdk"
diff --git a/build.sbt b/build.sbt
index cd57d06..c4f01de 100644
--- a/build.sbt
+++ b/build.sbt
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "ai.reveng",
name := "sdk",
- version := "2.11.7",
+ version := "2.12.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
diff --git a/docs/AnalysisFunctionMatchingRequest.md b/docs/AnalysisFunctionMatchingRequest.md
index 2aa5a7f..0870116 100644
--- a/docs/AnalysisFunctionMatchingRequest.md
+++ b/docs/AnalysisFunctionMatchingRequest.md
@@ -12,6 +12,7 @@
|**resultsPerFunction** | **Integer** | Maximum number of matches to return per function, default is 1, max is 10 | [optional] |
|**page** | **Integer** | Page number for paginated results, default is 1 (first page) | [optional] |
|**pageSize** | **Integer** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] |
+|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] |
diff --git a/docs/AutoUnstripRequest.md b/docs/AutoUnstripRequest.md
index 461a3fa..cadee7f 100644
--- a/docs/AutoUnstripRequest.md
+++ b/docs/AutoUnstripRequest.md
@@ -11,6 +11,7 @@
|**apply** | **Boolean** | Whether to apply the matched function names to the target binary, default is False | [optional] |
|**confidenceThreshold** | **BigDecimal** | Confidence threshold for applying function names as a percentage, default is 90 | [optional] |
|**minGroupSize** | **Integer** | Minimum number of matching functions required to consider for a match, default is 10 | [optional] |
+|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] |
diff --git a/docs/FunctionMatchingRequest.md b/docs/FunctionMatchingRequest.md
index b6edc3c..c87bd6f 100644
--- a/docs/FunctionMatchingRequest.md
+++ b/docs/FunctionMatchingRequest.md
@@ -14,6 +14,7 @@
|**resultsPerFunction** | **Integer** | Maximum number of matches to return per function, default is 1, max is 50 | [optional] |
|**page** | **Integer** | Page number for paginated results, default is 1 (first page) | [optional] |
|**pageSize** | **Integer** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] |
+|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] |
diff --git a/pom.xml b/pom.xml
index b5b36d1..2aac552 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
sdk
jar
sdk
- 2.11.7
+ 2.12.0
https://github.com/RevEngAI/sdk-java
Java SDK for the RevEng.AI API
diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java
index 06aa188..0fbf950 100644
--- a/src/main/java/ai/reveng/invoker/ApiClient.java
+++ b/src/main/java/ai/reveng/invoker/ApiClient.java
@@ -146,7 +146,7 @@ protected void init() {
json = new JSON();
// Set default User-Agent.
- setUserAgent("OpenAPI-Generator/2.11.7/java");
+ setUserAgent("OpenAPI-Generator/2.12.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 5fdaa6d..d6eefdf 100644
--- a/src/main/java/ai/reveng/invoker/Configuration.java
+++ b/src/main/java/ai/reveng/invoker/Configuration.java
@@ -18,7 +18,7 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
- public static final String VERSION = "2.11.7";
+ public static final String VERSION = "2.12.0";
private static final AtomicReference defaultApiClient = new AtomicReference<>();
private static volatile Supplier apiClientFactory = ApiClient::new;
diff --git a/src/main/java/ai/reveng/model/AnalysisFunctionMatchingRequest.java b/src/main/java/ai/reveng/model/AnalysisFunctionMatchingRequest.java
index 900d86e..d07a422 100644
--- a/src/main/java/ai/reveng/model/AnalysisFunctionMatchingRequest.java
+++ b/src/main/java/ai/reveng/model/AnalysisFunctionMatchingRequest.java
@@ -79,6 +79,11 @@ public class AnalysisFunctionMatchingRequest {
@javax.annotation.Nullable
private Integer pageSize = 0;
+ public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
+ @SerializedName(SERIALIZED_NAME_NO_CACHE)
+ @javax.annotation.Nullable
+ private Boolean noCache = false;
+
public AnalysisFunctionMatchingRequest() {
}
@@ -183,6 +188,25 @@ public void setPageSize(@javax.annotation.Nullable Integer pageSize) {
this.pageSize = pageSize;
}
+
+ public AnalysisFunctionMatchingRequest noCache(@javax.annotation.Nullable Boolean noCache) {
+ this.noCache = noCache;
+ return this;
+ }
+
+ /**
+ * If set to true, forces the system to bypass any cached results and perform a fresh computation
+ * @return noCache
+ */
+ @javax.annotation.Nullable
+ public Boolean getNoCache() {
+ return noCache;
+ }
+
+ public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
+ this.noCache = noCache;
+ }
+
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
@@ -242,7 +266,8 @@ public boolean equals(Object o) {
Objects.equals(this.filters, analysisFunctionMatchingRequest.filters) &&
Objects.equals(this.resultsPerFunction, analysisFunctionMatchingRequest.resultsPerFunction) &&
Objects.equals(this.page, analysisFunctionMatchingRequest.page) &&
- Objects.equals(this.pageSize, analysisFunctionMatchingRequest.pageSize)&&
+ Objects.equals(this.pageSize, analysisFunctionMatchingRequest.pageSize) &&
+ Objects.equals(this.noCache, analysisFunctionMatchingRequest.noCache)&&
Objects.equals(this.additionalProperties, analysisFunctionMatchingRequest.additionalProperties);
}
@@ -252,7 +277,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(minSimilarity, filters, resultsPerFunction, page, pageSize, additionalProperties);
+ return Objects.hash(minSimilarity, filters, resultsPerFunction, page, pageSize, noCache, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -271,6 +296,7 @@ public String toString() {
sb.append(" resultsPerFunction: ").append(toIndentedString(resultsPerFunction)).append("\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
+ sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -293,7 +319,7 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("min_similarity", "filters", "results_per_function", "page", "page_size"));
+ openapiFields = new HashSet(Arrays.asList("min_similarity", "filters", "results_per_function", "page", "page_size", "no_cache"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet(0);
diff --git a/src/main/java/ai/reveng/model/AutoUnstripRequest.java b/src/main/java/ai/reveng/model/AutoUnstripRequest.java
index 75d91a1..1949b6c 100644
--- a/src/main/java/ai/reveng/model/AutoUnstripRequest.java
+++ b/src/main/java/ai/reveng/model/AutoUnstripRequest.java
@@ -72,6 +72,11 @@ public class AutoUnstripRequest {
@javax.annotation.Nullable
private Integer minGroupSize = 10;
+ public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
+ @SerializedName(SERIALIZED_NAME_NO_CACHE)
+ @javax.annotation.Nullable
+ private Boolean noCache = false;
+
public AutoUnstripRequest() {
}
@@ -156,6 +161,25 @@ public void setMinGroupSize(@javax.annotation.Nullable Integer minGroupSize) {
this.minGroupSize = minGroupSize;
}
+
+ public AutoUnstripRequest noCache(@javax.annotation.Nullable Boolean noCache) {
+ this.noCache = noCache;
+ return this;
+ }
+
+ /**
+ * If set to true, forces the system to bypass any cached results and perform a fresh computation
+ * @return noCache
+ */
+ @javax.annotation.Nullable
+ public Boolean getNoCache() {
+ return noCache;
+ }
+
+ public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
+ this.noCache = noCache;
+ }
+
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
@@ -214,13 +238,14 @@ public boolean equals(Object o) {
return Objects.equals(this.minSimilarity, autoUnstripRequest.minSimilarity) &&
Objects.equals(this.apply, autoUnstripRequest.apply) &&
Objects.equals(this.confidenceThreshold, autoUnstripRequest.confidenceThreshold) &&
- Objects.equals(this.minGroupSize, autoUnstripRequest.minGroupSize)&&
+ Objects.equals(this.minGroupSize, autoUnstripRequest.minGroupSize) &&
+ Objects.equals(this.noCache, autoUnstripRequest.noCache)&&
Objects.equals(this.additionalProperties, autoUnstripRequest.additionalProperties);
}
@Override
public int hashCode() {
- return Objects.hash(minSimilarity, apply, confidenceThreshold, minGroupSize, additionalProperties);
+ return Objects.hash(minSimilarity, apply, confidenceThreshold, minGroupSize, noCache, additionalProperties);
}
@Override
@@ -231,6 +256,7 @@ public String toString() {
sb.append(" apply: ").append(toIndentedString(apply)).append("\n");
sb.append(" confidenceThreshold: ").append(toIndentedString(confidenceThreshold)).append("\n");
sb.append(" minGroupSize: ").append(toIndentedString(minGroupSize)).append("\n");
+ sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -253,7 +279,7 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("min_similarity", "apply", "confidence_threshold", "min_group_size"));
+ openapiFields = new HashSet(Arrays.asList("min_similarity", "apply", "confidence_threshold", "min_group_size", "no_cache"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet(0);
diff --git a/src/main/java/ai/reveng/model/FunctionMatchingRequest.java b/src/main/java/ai/reveng/model/FunctionMatchingRequest.java
index 54514c5..dea896e 100644
--- a/src/main/java/ai/reveng/model/FunctionMatchingRequest.java
+++ b/src/main/java/ai/reveng/model/FunctionMatchingRequest.java
@@ -91,6 +91,11 @@ public class FunctionMatchingRequest {
@javax.annotation.Nullable
private Integer pageSize = 0;
+ public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
+ @SerializedName(SERIALIZED_NAME_NO_CACHE)
+ @javax.annotation.Nullable
+ private Boolean noCache = false;
+
public FunctionMatchingRequest() {
}
@@ -241,6 +246,25 @@ public void setPageSize(@javax.annotation.Nullable Integer pageSize) {
this.pageSize = pageSize;
}
+
+ public FunctionMatchingRequest noCache(@javax.annotation.Nullable Boolean noCache) {
+ this.noCache = noCache;
+ return this;
+ }
+
+ /**
+ * If set to true, forces the system to bypass any cached results and perform a fresh computation
+ * @return noCache
+ */
+ @javax.annotation.Nullable
+ public Boolean getNoCache() {
+ return noCache;
+ }
+
+ public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
+ this.noCache = noCache;
+ }
+
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
@@ -302,7 +326,8 @@ public boolean equals(Object o) {
Objects.equals(this.filters, functionMatchingRequest.filters) &&
Objects.equals(this.resultsPerFunction, functionMatchingRequest.resultsPerFunction) &&
Objects.equals(this.page, functionMatchingRequest.page) &&
- Objects.equals(this.pageSize, functionMatchingRequest.pageSize)&&
+ Objects.equals(this.pageSize, functionMatchingRequest.pageSize) &&
+ Objects.equals(this.noCache, functionMatchingRequest.noCache)&&
Objects.equals(this.additionalProperties, functionMatchingRequest.additionalProperties);
}
@@ -312,7 +337,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(modelId, functionIds, minSimilarity, filters, resultsPerFunction, page, pageSize, additionalProperties);
+ return Objects.hash(modelId, functionIds, minSimilarity, filters, resultsPerFunction, page, pageSize, noCache, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -333,6 +358,7 @@ public String toString() {
sb.append(" resultsPerFunction: ").append(toIndentedString(resultsPerFunction)).append("\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
+ sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -355,7 +381,7 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("model_id", "function_ids", "min_similarity", "filters", "results_per_function", "page", "page_size"));
+ openapiFields = new HashSet(Arrays.asList("model_id", "function_ids", "min_similarity", "filters", "results_per_function", "page", "page_size", "no_cache"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet(Arrays.asList("model_id", "function_ids"));
diff --git a/src/test/java/ai/reveng/model/AnalysisFunctionMatchingRequestTest.java b/src/test/java/ai/reveng/model/AnalysisFunctionMatchingRequestTest.java
index dee63c6..88c9a54 100644
--- a/src/test/java/ai/reveng/model/AnalysisFunctionMatchingRequestTest.java
+++ b/src/test/java/ai/reveng/model/AnalysisFunctionMatchingRequestTest.java
@@ -79,4 +79,12 @@ public void pageSizeTest() {
// TODO: test pageSize
}
+ /**
+ * Test the property 'noCache'
+ */
+ @Test
+ public void noCacheTest() {
+ // TODO: test noCache
+ }
+
}
diff --git a/src/test/java/ai/reveng/model/AutoUnstripRequestTest.java b/src/test/java/ai/reveng/model/AutoUnstripRequestTest.java
index e6dcca4..6af19b7 100644
--- a/src/test/java/ai/reveng/model/AutoUnstripRequestTest.java
+++ b/src/test/java/ai/reveng/model/AutoUnstripRequestTest.java
@@ -69,4 +69,12 @@ public void minGroupSizeTest() {
// TODO: test minGroupSize
}
+ /**
+ * Test the property 'noCache'
+ */
+ @Test
+ public void noCacheTest() {
+ // TODO: test noCache
+ }
+
}
diff --git a/src/test/java/ai/reveng/model/FunctionMatchingRequestTest.java b/src/test/java/ai/reveng/model/FunctionMatchingRequestTest.java
index 4cd22b6..50599d2 100644
--- a/src/test/java/ai/reveng/model/FunctionMatchingRequestTest.java
+++ b/src/test/java/ai/reveng/model/FunctionMatchingRequestTest.java
@@ -97,4 +97,12 @@ public void pageSizeTest() {
// TODO: test pageSize
}
+ /**
+ * Test the property 'noCache'
+ */
+ @Test
+ public void noCacheTest() {
+ // TODO: test noCache
+ }
+
}