19146: Add can_write and can_manage response fields.
[arvados.git] / sdk / go / arvados / group.go
index b46b596f4f5fceaceb01a143ac8f5b3a1fcf45a1..0782bd43d154f1ada231307f6a85970c61a28b08 100644 (file)
@@ -16,7 +16,6 @@ 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"`
@@ -27,22 +26,18 @@ type Group struct {
        Properties           map[string]interface{} `json:"properties"`
        WritableBy           []string               `json:"writable_by,omitempty"`
        Description          string                 `json:"description"`
+       FrozenByUUID         string                 `json:"frozen_by_uuid"`
+       CanWrite             bool                   `json:"can_write"`
+       CanManage            bool                   `json:"can_manage"`
 }
 
 // GroupList is an arvados#groupList resource.
 type GroupList struct {
-       Items          []Group `json:"items"`
-       ItemsAvailable int     `json:"items_available"`
-       Offset         int     `json:"offset"`
-       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"`
+       Items          []Group       `json:"items"`
+       ItemsAvailable int           `json:"items_available"`
+       Offset         int           `json:"offset"`
+       Limit          int           `json:"limit"`
+       Included       []interface{} `json:"included"`
 }
 
 // ObjectList is an arvados#objectList resource.