14287: Propagate include_trash flag.
[arvados.git] / sdk / go / arvados / api.go
index a1c79068039e2ac928c10fd41ebfbdd16cdfc643..ebf44a82221045c163e78233af650fe43285d048 100644 (file)
@@ -16,6 +16,8 @@ var (
        EndpointCollectionUpdate              = APIEndpoint{"PATCH", "arvados/v1/collections/:uuid", "collection"}
        EndpointCollectionGet                 = APIEndpoint{"GET", "arvados/v1/collections/:uuid", ""}
        EndpointCollectionList                = APIEndpoint{"GET", "arvados/v1/collections", ""}
+       EndpointCollectionProvenance          = APIEndpoint{"GET", "arvados/v1/collections/:uuid/provenance", ""}
+       EndpointCollectionUsedBy              = APIEndpoint{"GET", "arvados/v1/collections/:uuid/used_by", ""}
        EndpointCollectionDelete              = APIEndpoint{"DELETE", "arvados/v1/collections/:uuid", ""}
        EndpointSpecimenCreate                = APIEndpoint{"POST", "arvados/v1/specimens", "specimen"}
        EndpointSpecimenUpdate                = APIEndpoint{"PATCH", "arvados/v1/specimens/:uuid", "specimen"}
@@ -38,11 +40,16 @@ type GetOptions struct {
 }
 
 type ListOptions struct {
-       Select  []string `json:"select"`
-       Filters []Filter `json:"filters"`
-       Limit   int      `json:"limit"`
-       Offset  int      `json:"offset"`
-       Order   string   `json:"order"`
+       Select             []string               `json:"select"`
+       Filters            []Filter               `json:"filters"`
+       Where              map[string]interface{} `json:"where"`
+       Limit              int                    `json:"limit"`
+       Offset             int                    `json:"offset"`
+       Order              []string               `json:"order"`
+       Distinct           bool                   `json:"distinct"`
+       Count              string                 `json:"count"`
+       IncludeTrash       bool                   `json:"include_trash"`
+       IncludeOldVersions bool                   `json:"include_old_versions"`
 }
 
 type CreateOptions struct {