diff --git a/.sdk-version b/.sdk-version index cdb3376..e2edebe 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.78.1 +v2.80.0 diff --git a/README.md b/README.md index e2341ce..dff9b42 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 2.78.1 + 2.80.0 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:2.78.1" + implementation "ai.reveng:sdk:2.80.0" } ``` diff --git a/build.gradle b/build.gradle index 3656e70..f39a6a5 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '2.78.1' +version = '2.80.0' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "2.78.1") + coordinates("ai.reveng", "sdk", "2.80.0") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index 65f1424..ce1ae98 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.78.1", + version := "2.80.0", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/Basic.md b/docs/Basic.md index 4494117..613a170 100644 --- a/docs/Basic.md +++ b/docs/Basic.md @@ -14,6 +14,7 @@ |**modelName** | **String** | The model name used for analysis | | |**modelId** | **Integer** | The model ID used for analysis | | |**ownerUsername** | **String** | The name of the owner of the binary | | +|**isSystem** | **Boolean** | Whether the analysis is a system analysis | | |**analysisScope** | **String** | The scope of the analysis | | |**isOwner** | **Boolean** | Whether the current user is the owner | | |**debug** | **Boolean** | Whether the current analysis was analysed with debug symbols | | diff --git a/docs/CollectionBinaryResponse.md b/docs/CollectionBinaryResponse.md index 3293ef0..68cffcf 100644 --- a/docs/CollectionBinaryResponse.md +++ b/docs/CollectionBinaryResponse.md @@ -13,6 +13,7 @@ |**ownerId** | **Integer** | Binary owner | | |**sha256Hash** | **String** | Binary SHA-256 hash | | |**createdAt** | **OffsetDateTime** | Binary creation date | | +|**isSystemAnalysis** | **Boolean** | Is the analysis owned by a RevEng.AI account | | diff --git a/docs/CollectionResponseBinariesInner.md b/docs/CollectionResponseBinariesInner.md index 7978bba..2d83d68 100644 --- a/docs/CollectionResponseBinariesInner.md +++ b/docs/CollectionResponseBinariesInner.md @@ -13,6 +13,7 @@ |**ownerId** | **Integer** | Binary owner | | |**sha256Hash** | **String** | Binary SHA-256 hash | | |**createdAt** | **OffsetDateTime** | Binary creation date | | +|**isSystemAnalysis** | **Boolean** | Is the analysis owned by a RevEng.AI account | | diff --git a/pom.xml b/pom.xml index 00299c2..fa44a6a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 2.78.1 + 2.80.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 4086570..141854e 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.78.1/java"); + setUserAgent("OpenAPI-Generator/2.80.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 73611f7..6235473 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.78.1"; + public static final String VERSION = "2.80.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/ai/reveng/model/Basic.java b/src/main/java/ai/reveng/model/Basic.java index 0864c48..23805ff 100644 --- a/src/main/java/ai/reveng/model/Basic.java +++ b/src/main/java/ai/reveng/model/Basic.java @@ -87,6 +87,11 @@ public class Basic { @javax.annotation.Nonnull private String ownerUsername; + public static final String SERIALIZED_NAME_IS_SYSTEM = "is_system"; + @SerializedName(SERIALIZED_NAME_IS_SYSTEM) + @javax.annotation.Nonnull + private Boolean isSystem; + public static final String SERIALIZED_NAME_ANALYSIS_SCOPE = "analysis_scope"; @SerializedName(SERIALIZED_NAME_ANALYSIS_SCOPE) @javax.annotation.Nonnull @@ -253,6 +258,25 @@ public void setOwnerUsername(@javax.annotation.Nonnull String ownerUsername) { } + public Basic isSystem(@javax.annotation.Nonnull Boolean isSystem) { + this.isSystem = isSystem; + return this; + } + + /** + * Whether the analysis is a system analysis + * @return isSystem + */ + @javax.annotation.Nonnull + public Boolean getIsSystem() { + return isSystem; + } + + public void setIsSystem(@javax.annotation.Nonnull Boolean isSystem) { + this.isSystem = isSystem; + } + + public Basic analysisScope(@javax.annotation.Nonnull String analysisScope) { this.analysisScope = analysisScope; return this; @@ -428,6 +452,7 @@ public boolean equals(Object o) { Objects.equals(this.modelName, basic.modelName) && Objects.equals(this.modelId, basic.modelId) && Objects.equals(this.ownerUsername, basic.ownerUsername) && + Objects.equals(this.isSystem, basic.isSystem) && Objects.equals(this.analysisScope, basic.analysisScope) && Objects.equals(this.isOwner, basic.isOwner) && Objects.equals(this.debug, basic.debug) && @@ -439,7 +464,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(binaryName, binarySize, creation, sha256Hash, modelName, modelId, ownerUsername, analysisScope, isOwner, debug, functionCount, isAdvanced, baseAddress, additionalProperties); + return Objects.hash(binaryName, binarySize, creation, sha256Hash, modelName, modelId, ownerUsername, isSystem, analysisScope, isOwner, debug, functionCount, isAdvanced, baseAddress, additionalProperties); } @Override @@ -453,6 +478,7 @@ public String toString() { sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); sb.append(" ownerUsername: ").append(toIndentedString(ownerUsername)).append("\n"); + sb.append(" isSystem: ").append(toIndentedString(isSystem)).append("\n"); sb.append(" analysisScope: ").append(toIndentedString(analysisScope)).append("\n"); sb.append(" isOwner: ").append(toIndentedString(isOwner)).append("\n"); sb.append(" debug: ").append(toIndentedString(debug)).append("\n"); @@ -481,10 +507,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address")); + openapiFields = new HashSet(Arrays.asList("binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address")); + openapiRequiredFields = new HashSet(Arrays.asList("binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address")); } /** diff --git a/src/main/java/ai/reveng/model/CollectionBinaryResponse.java b/src/main/java/ai/reveng/model/CollectionBinaryResponse.java index 67999fb..1732746 100644 --- a/src/main/java/ai/reveng/model/CollectionBinaryResponse.java +++ b/src/main/java/ai/reveng/model/CollectionBinaryResponse.java @@ -82,6 +82,11 @@ public class CollectionBinaryResponse { @javax.annotation.Nonnull private OffsetDateTime createdAt; + public static final String SERIALIZED_NAME_IS_SYSTEM_ANALYSIS = "is_system_analysis"; + @SerializedName(SERIALIZED_NAME_IS_SYSTEM_ANALYSIS) + @javax.annotation.Nonnull + private Boolean isSystemAnalysis; + public CollectionBinaryResponse() { } @@ -198,6 +203,25 @@ public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { this.createdAt = createdAt; } + + public CollectionBinaryResponse isSystemAnalysis(@javax.annotation.Nonnull Boolean isSystemAnalysis) { + this.isSystemAnalysis = isSystemAnalysis; + return this; + } + + /** + * Is the analysis owned by a RevEng.AI account + * @return isSystemAnalysis + */ + @javax.annotation.Nonnull + public Boolean getIsSystemAnalysis() { + return isSystemAnalysis; + } + + public void setIsSystemAnalysis(@javax.annotation.Nonnull Boolean isSystemAnalysis) { + this.isSystemAnalysis = isSystemAnalysis; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -258,13 +282,14 @@ public boolean equals(Object o) { Objects.equals(this.binaryName, collectionBinaryResponse.binaryName) && Objects.equals(this.ownerId, collectionBinaryResponse.ownerId) && Objects.equals(this.sha256Hash, collectionBinaryResponse.sha256Hash) && - Objects.equals(this.createdAt, collectionBinaryResponse.createdAt)&& + Objects.equals(this.createdAt, collectionBinaryResponse.createdAt) && + Objects.equals(this.isSystemAnalysis, collectionBinaryResponse.isSystemAnalysis)&& Objects.equals(this.additionalProperties, collectionBinaryResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(analysisId, binaryId, binaryName, ownerId, sha256Hash, createdAt, additionalProperties); + return Objects.hash(analysisId, binaryId, binaryName, ownerId, sha256Hash, createdAt, isSystemAnalysis, additionalProperties); } @Override @@ -277,6 +302,7 @@ public String toString() { sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n"); sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" isSystemAnalysis: ").append(toIndentedString(isSystemAnalysis)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -299,10 +325,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at")); + openapiFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at", "is_system_analysis")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at")); + openapiRequiredFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at", "is_system_analysis")); } /** diff --git a/src/test/java/ai/reveng/model/BasicTest.java b/src/test/java/ai/reveng/model/BasicTest.java index 9e98aa3..2c3b85a 100644 --- a/src/test/java/ai/reveng/model/BasicTest.java +++ b/src/test/java/ai/reveng/model/BasicTest.java @@ -93,6 +93,14 @@ public void ownerUsernameTest() { // TODO: test ownerUsername } + /** + * Test the property 'isSystem' + */ + @Test + public void isSystemTest() { + // TODO: test isSystem + } + /** * Test the property 'analysisScope' */ diff --git a/src/test/java/ai/reveng/model/CollectionBinaryResponseTest.java b/src/test/java/ai/reveng/model/CollectionBinaryResponseTest.java index e97653c..248aa10 100644 --- a/src/test/java/ai/reveng/model/CollectionBinaryResponseTest.java +++ b/src/test/java/ai/reveng/model/CollectionBinaryResponseTest.java @@ -85,4 +85,12 @@ public void createdAtTest() { // TODO: test createdAt } + /** + * Test the property 'isSystemAnalysis' + */ + @Test + public void isSystemAnalysisTest() { + // TODO: test isSystemAnalysis + } + } diff --git a/src/test/java/ai/reveng/model/CollectionResponseBinariesInnerTest.java b/src/test/java/ai/reveng/model/CollectionResponseBinariesInnerTest.java index f280a18..ff4cc3a 100644 --- a/src/test/java/ai/reveng/model/CollectionResponseBinariesInnerTest.java +++ b/src/test/java/ai/reveng/model/CollectionResponseBinariesInnerTest.java @@ -86,4 +86,12 @@ public void createdAtTest() { // TODO: test createdAt } + /** + * Test the property 'isSystemAnalysis' + */ + @Test + public void isSystemAnalysisTest() { + // TODO: test isSystemAnalysis + } + }