Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.6.0
v3.8.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>ai.reveng</groupId>
<artifactId>sdk</artifactId>
<version>3.6.0</version>
<version>3.8.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.6.0"
implementation "ai.reveng:sdk:3.8.0"
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'ai.reveng'
version = '3.6.0'
version = '3.8.0'



Expand Down Expand Up @@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()

coordinates("ai.reveng", "sdk", "3.6.0")
coordinates("ai.reveng", "sdk", "3.8.0")

pom {
name = "sdk"
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "ai.reveng",
name := "sdk",
version := "3.6.0",
version := "3.8.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 2 additions & 0 deletions docs/Basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
|**functionCount** | **Integer** | The number of functions in the binary | |
|**isAdvanced** | **Boolean** | Whether the analysis was advanced | |
|**baseAddress** | **Integer** | | |
|**binaryUuid** | **String** | | [optional] |
|**sequencerVersion** | **String** | | [optional] |



2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>sdk</artifactId>
<packaging>jar</packaging>
<name>sdk</name>
<version>3.6.0</version>
<version>3.8.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/3.6.0/java");
setUserAgent("OpenAPI-Generator/3.8.0/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
public static final String VERSION = "3.6.0";
public static final String VERSION = "3.8.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
76 changes: 73 additions & 3 deletions src/main/java/ai/reveng/model/Basic.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Arrays;
import org.openapitools.jackson.nullable.JsonNullable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
Expand Down Expand Up @@ -122,6 +123,16 @@ public class Basic {
@javax.annotation.Nullable
private Integer baseAddress;

public static final String SERIALIZED_NAME_BINARY_UUID = "binary_uuid";
@SerializedName(SERIALIZED_NAME_BINARY_UUID)
@javax.annotation.Nullable
private String binaryUuid;

public static final String SERIALIZED_NAME_SEQUENCER_VERSION = "sequencer_version";
@SerializedName(SERIALIZED_NAME_SEQUENCER_VERSION)
@javax.annotation.Nullable
private String sequencerVersion;

public Basic() {
}

Expand Down Expand Up @@ -390,6 +401,44 @@ public void setBaseAddress(@javax.annotation.Nullable Integer baseAddress) {
this.baseAddress = baseAddress;
}


public Basic binaryUuid(@javax.annotation.Nullable String binaryUuid) {
this.binaryUuid = binaryUuid;
return this;
}

/**
* Get binaryUuid
* @return binaryUuid
*/
@javax.annotation.Nullable
public String getBinaryUuid() {
return binaryUuid;
}

public void setBinaryUuid(@javax.annotation.Nullable String binaryUuid) {
this.binaryUuid = binaryUuid;
}


public Basic sequencerVersion(@javax.annotation.Nullable String sequencerVersion) {
this.sequencerVersion = sequencerVersion;
return this;
}

/**
* Get sequencerVersion
* @return sequencerVersion
*/
@javax.annotation.Nullable
public String getSequencerVersion() {
return sequencerVersion;
}

public void setSequencerVersion(@javax.annotation.Nullable String sequencerVersion) {
this.sequencerVersion = sequencerVersion;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -458,13 +507,26 @@ public boolean equals(Object o) {
Objects.equals(this.debug, basic.debug) &&
Objects.equals(this.functionCount, basic.functionCount) &&
Objects.equals(this.isAdvanced, basic.isAdvanced) &&
Objects.equals(this.baseAddress, basic.baseAddress)&&
Objects.equals(this.baseAddress, basic.baseAddress) &&
Objects.equals(this.binaryUuid, basic.binaryUuid) &&
Objects.equals(this.sequencerVersion, basic.sequencerVersion)&&
Objects.equals(this.additionalProperties, basic.additionalProperties);
}

private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}

@Override
public int hashCode() {
return Objects.hash(binaryName, binarySize, creation, sha256Hash, modelName, modelId, ownerUsername, isSystem, analysisScope, isOwner, debug, functionCount, isAdvanced, baseAddress, additionalProperties);
return Objects.hash(binaryName, binarySize, creation, sha256Hash, modelName, modelId, ownerUsername, isSystem, analysisScope, isOwner, debug, functionCount, isAdvanced, baseAddress, binaryUuid, sequencerVersion, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}

@Override
Expand All @@ -485,6 +547,8 @@ public String toString() {
sb.append(" functionCount: ").append(toIndentedString(functionCount)).append("\n");
sb.append(" isAdvanced: ").append(toIndentedString(isAdvanced)).append("\n");
sb.append(" baseAddress: ").append(toIndentedString(baseAddress)).append("\n");
sb.append(" binaryUuid: ").append(toIndentedString(binaryUuid)).append("\n");
sb.append(" sequencerVersion: ").append(toIndentedString(sequencerVersion)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -507,7 +571,7 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(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"));
openapiFields = new HashSet<String>(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", "binary_uuid", "sequencer_version"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(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"));
Expand Down Expand Up @@ -548,6 +612,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("analysis_scope").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `analysis_scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("analysis_scope").toString()));
}
if ((jsonObj.get("binary_uuid") != null && !jsonObj.get("binary_uuid").isJsonNull()) && !jsonObj.get("binary_uuid").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binary_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binary_uuid").toString()));
}
if ((jsonObj.get("sequencer_version") != null && !jsonObj.get("sequencer_version").isJsonNull()) && !jsonObj.get("sequencer_version").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sequencer_version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sequencer_version").toString()));
}
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
17 changes: 17 additions & 0 deletions src/test/java/ai/reveng/model/BasicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Arrays;
import org.openapitools.jackson.nullable.JsonNullable;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -149,4 +150,20 @@ public void baseAddressTest() {
// TODO: test baseAddress
}

/**
* Test the property 'binaryUuid'
*/
@Test
public void binaryUuidTest() {
// TODO: test binaryUuid
}

/**
* Test the property 'sequencerVersion'
*/
@Test
public void sequencerVersionTest() {
// TODO: test sequencerVersion
}

}