19146: Add can_write and can_manage response fields.
[arvados.git] / sdk / go / arvados / user.go
index 30bc094d07c95e91b9a930c0bb923e4d4d6d908e..2fb061e7fb818840fc8e1c42ae10e771c45e1ee5 100644 (file)
@@ -9,6 +9,7 @@ import "time"
 // User is an arvados#user record
 type User struct {
        UUID                 string                 `json:"uuid"`
+       Etag                 string                 `json:"etag"`
        IsActive             bool                   `json:"is_active"`
        IsAdmin              bool                   `json:"is_admin"`
        Username             string                 `json:"username"`
@@ -24,6 +25,9 @@ type User struct {
        ModifiedByUserUUID   string                 `json:"modified_by_user_uuid"`
        ModifiedByClientUUID string                 `json:"modified_by_client_uuid"`
        Prefs                map[string]interface{} `json:"prefs"`
+       WritableBy           []string               `json:"writable_by,omitempty"`
+       CanWrite             bool                   `json:"can_write"`
+       CanManage            bool                   `json:"can_manage"`
 }
 
 // UserList is an arvados#userList resource.