1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class Group < ArvadosBase
6 def self.goes_in_projects?
10 def self.copies_to_projects?
14 def self.contents params={}
15 res = arvados_api_client.api self, "/contents", {
18 ret = ArvadosResourceList.new
19 ret.results = arvados_api_client.unpack_api_response(res)
23 def contents params={}
24 res = arvados_api_client.api self.class, "/#{self.uuid}/contents", {
27 ret = ArvadosResourceList.new
28 ret.results = arvados_api_client.unpack_api_response(res)
33 group_class == 'project' ? 'Project' : super
36 def textile_attributes
45 arvados_api_client.api(self.class, "/#{self.uuid}/untrash", {"ensure_unique_name" => true})