17119: fix options and response type of the groups/shared and
[arvados.git] / sdk / go / arvados / group.go
index 53809881532b75370c38ac9dab78d3d8e9335b73..b46b596f4f5fceaceb01a143ac8f5b3a1fcf45a1 100644 (file)
@@ -16,6 +16,7 @@ type Group struct {
        GroupClass           string                 `json:"group_class"`
        Etag                 string                 `json:"etag"`
        Href                 string                 `json:"href"`
+       Kind                 string                 `json:"kind"`
        TrashAt              *time.Time             `json:"trash_at"`
        CreatedAt            time.Time              `json:"created_at"`
        ModifiedAt           time.Time              `json:"modified_at"`
@@ -36,8 +37,17 @@ type GroupList struct {
        Limit          int     `json:"limit"`
 }
 
+// SharedGroupList is an arvados#groupList resource.
+type SharedGroupList struct {
+       Included []interface{} `json:"included"`
+       Items    []Group       `json:"items"`
+       Offset   int           `json:"offset"`
+       Limit    int           `json:"limit"`
+}
+
 // ObjectList is an arvados#objectList resource.
 type ObjectList struct {
+       Included       []interface{} `json:"included"`
        Items          []interface{} `json:"items"`
        ItemsAvailable int           `json:"items_available"`
        Offset         int           `json:"offset"`