[arvados] created: 2.6.0-291-g1a2bc3c27

git repository hosting git at public.arvados.org
Wed Jun 21 19:33:24 UTC 2023


        at  1a2bc3c27b7289fa8011a37d04fb6035be98f52e (commit)


commit 1a2bc3c27b7289fa8011a37d04fb6035be98f52e
Author: Krzysztof Majewski <krzysztof.majewski.km1 at contractors.roche.com>
Date:   Tue Jun 20 16:07:47 2023 +0200

    Add new list method parameters: include_old_versions, include_trash
    
    Arvados-DCO-1.1-Signed-off-by: Krzysztof Majewski majewski.kielce at gmail.com

diff --git a/sdk/java-v2/src/main/java/org/arvados/client/api/model/argument/ListArgument.java b/sdk/java-v2/src/main/java/org/arvados/client/api/model/argument/ListArgument.java
index ca86c585e..923097369 100644
--- a/sdk/java-v2/src/main/java/org/arvados/client/api/model/argument/ListArgument.java
+++ b/sdk/java-v2/src/main/java/org/arvados/client/api/model/argument/ListArgument.java
@@ -14,7 +14,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
 import java.util.List;
 
 @JsonInclude(JsonInclude.Include.NON_NULL)
- at JsonPropertyOrder({ "limit", "offset", "filters", "order", "select", "distinct", "count", "exclude_home_project" })
+ at JsonPropertyOrder({ "limit", "offset", "filters", "order", "select", "distinct", "count", "exclude_home_project", "include_old_versions", "include_trash" })
 public class ListArgument extends Argument {
 
     @JsonProperty("limit")
@@ -41,7 +41,17 @@ public class ListArgument extends Argument {
     @JsonProperty("exclude_home_project")
     private Boolean excludeHomeProject;
 
-    ListArgument(Integer limit, Integer offset, List<Filter> filters, List<String> order, List<String> select, Boolean distinct, Count count, Boolean excludeHomeProject) {
+    @JsonProperty("include_old_versions")
+    private Boolean includeOldVersions;
+
+    @JsonProperty("include_trash")
+    private Boolean includeTrash;
+
+    ListArgument(
+            Integer limit, Integer offset, List<Filter> filters, List<String> order, List<String> select,
+            Boolean distinct, Count count, Boolean excludeHomeProject, Boolean includeOldVersions,
+            Boolean includeTrash
+    ) {
         this.limit = limit;
         this.offset = offset;
         this.filters = filters;
@@ -50,6 +60,8 @@ public class ListArgument extends Argument {
         this.distinct = distinct;
         this.count = count;
         this.excludeHomeProject = excludeHomeProject;
+        this.includeOldVersions = includeOldVersions;
+        this.includeTrash = includeTrash;
     }
 
     public static ListArgumentBuilder builder() {
@@ -74,6 +86,8 @@ public class ListArgument extends Argument {
         private Boolean distinct;
         private Count count;
         private Boolean excludeHomeProject;
+        private Boolean includeOldVersions;
+        private Boolean includeTrash;
 
         ListArgumentBuilder() {
         }
@@ -118,8 +132,18 @@ public class ListArgument extends Argument {
             return this;
         }
 
+        public ListArgument.ListArgumentBuilder includeOldVersions(Boolean includeOldVersions) {
+            this.includeOldVersions = includeOldVersions;
+            return this;
+        }
+
+        public ListArgument.ListArgumentBuilder includeTrash(Boolean includeTrash) {
+            this.includeTrash = includeTrash;
+            return this;
+        }
+
         public ListArgument build() {
-            return new ListArgument(limit, offset, filters, order, select, distinct, count, excludeHomeProject);
+            return new ListArgument(limit, offset, filters, order, select, distinct, count, excludeHomeProject, includeOldVersions, includeTrash);
         }
 
         public String toString() {
@@ -127,7 +151,10 @@ public class ListArgument extends Argument {
                     ", offset=" + this.offset + ", filters=" + this.filters +
                     ", order=" + this.order + ", select=" + this.select +
                     ", distinct=" + this.distinct + ", count=" + this.count +
-                    ", excludeHomeProject=" + this.excludeHomeProject + ")";
+                    ", excludeHomeProject=" + this.excludeHomeProject +
+                    ", includeOldVersions=" + this.includeOldVersions +
+                    ", includeTrash=" + this.includeTrash +
+                    ")";
         }
     }
 }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list