Add Count to Go SDK ResourceListParams
authorJoshua C. Randall <jcrandall@alum.mit.edu>
Sat, 12 Nov 2016 15:57:18 +0000 (15:57 +0000)
committerJoshua C. Randall <jcrandall@alum.mit.edu>
Sat, 12 Nov 2016 15:57:18 +0000 (15:57 +0000)
sdk/go/arvados/resource_list.go

index e9ea268ff2efeb73f168d1f842fc923cf6063ea5..2864307ebfa029024894b6fe4bdac3667f98fc73 100644 (file)
@@ -5,11 +5,13 @@ import "encoding/json"
 // ResourceListParams expresses which results are requested in a
 // list/index API.
 type ResourceListParams struct {
-       Select  []string `json:"select,omitempty"`
-       Filters []Filter `json:"filters,omitempty"`
-       Limit   *int     `json:"limit,omitempty"`
-       Offset  int      `json:"offset,omitempty"`
-       Order   string   `json:"order,omitempty"`
+       Select   []string `json:"select,omitempty"`
+       Filters  []Filter `json:"filters,omitempty"`
+       Limit    *int     `json:"limit,omitempty"`
+       Offset   int      `json:"offset,omitempty"`
+       Order    string   `json:"order,omitempty"`
+       Distinct bool     `json:"distinct,omitempty"`
+       Count    bool     `json:"count,omitempty"`
 }
 
 // A Filter restricts the set of records returned by a list/index API.