diff --git a/README.md b/README.md index f01efce..f629ff4 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,14 @@ The official Java library for accessing ModelArk on Volcengine and BytePlus. It com.volcengine ark-runtime - 0.13.0 + 0.14.0 ``` ### Gradle ```groovy -implementation 'com.volcengine:ark-runtime:0.13.0' +implementation 'com.volcengine:ark-runtime:0.14.0' ``` ## Choose Volcengine or BytePlus diff --git a/VERSION b/VERSION index 54d1a4f..a803cc2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.13.0 +0.14.0 diff --git a/pom.xml b/pom.xml index 0b364bc..aeb66a3 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.volcengine ark-runtime - 0.13.0 + 0.14.0 jar ark-runtime diff --git a/src/main/java/com/volcengine/ark/runtime/models/file/FileListRequest.java b/src/main/java/com/volcengine/ark/runtime/models/file/FileListRequest.java index f07a4cc..46aca06 100644 --- a/src/main/java/com/volcengine/ark/runtime/models/file/FileListRequest.java +++ b/src/main/java/com/volcengine/ark/runtime/models/file/FileListRequest.java @@ -25,6 +25,7 @@ * FileListRequest */ @JsonPropertyOrder({ + FileListRequest.JSON_PROPERTY_SCOPE_ID, FileListRequest.JSON_PROPERTY_PURPOSE, FileListRequest.JSON_PROPERTY_AFTER, FileListRequest.JSON_PROPERTY_LIMIT, @@ -32,6 +33,10 @@ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0") public class FileListRequest { + public static final String JSON_PROPERTY_SCOPE_ID = "scope_id"; + @javax.annotation.Nullable + private String scopeId; + public static final String JSON_PROPERTY_PURPOSE = "purpose"; @javax.annotation.Nullable private Purpose purpose; @@ -51,6 +56,31 @@ public class FileListRequest { public FileListRequest() { } + public FileListRequest scopeId(@javax.annotation.Nullable String scopeId) { + + this.scopeId = scopeId; + return this; + } + + /** + * Filter files by scope ID. For session-owned files, use the session ID. + * @return scopeId + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_SCOPE_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getScopeId() { + return scopeId; + } + + + @JsonProperty(value = JSON_PROPERTY_SCOPE_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScopeId(@javax.annotation.Nullable String scopeId) { + this.scopeId = scopeId; + } + public FileListRequest purpose(@javax.annotation.Nullable Purpose purpose) { this.purpose = purpose; @@ -161,7 +191,8 @@ public boolean equals(Object o) { return false; } FileListRequest fileListRequest = (FileListRequest) o; - return Objects.equals(this.purpose, fileListRequest.purpose) && + return Objects.equals(this.scopeId, fileListRequest.scopeId) && + Objects.equals(this.purpose, fileListRequest.purpose) && Objects.equals(this.after, fileListRequest.after) && Objects.equals(this.limit, fileListRequest.limit) && Objects.equals(this.order, fileListRequest.order); @@ -169,13 +200,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(purpose, after, limit, order); + return Objects.hash(scopeId, purpose, after, limit, order); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FileListRequest {\n"); + sb.append(" scopeId: ").append(toIndentedString(scopeId)).append("\n"); sb.append(" purpose: ").append(toIndentedString(purpose)).append("\n"); sb.append(" after: ").append(toIndentedString(after)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); @@ -204,6 +236,10 @@ protected Builder(FileListRequest instance) { this.instance = instance; } + public FileListRequest.Builder scopeId(String scopeId) { + this.instance.scopeId = scopeId; + return this; + } public FileListRequest.Builder purpose(Purpose purpose) { this.instance.purpose = purpose; return this; @@ -254,6 +290,7 @@ public static FileListRequest.Builder builder() { */ public FileListRequest.Builder toBuilder() { return new FileListRequest.Builder() + .scopeId(getScopeId()) .purpose(getPurpose()) .after(getAfter()) .limit(getLimit())