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)
24 if group_class == 'filter'
30 def contents params={}
31 res = arvados_api_client.api self.class, "/#{self.uuid}/contents", {
34 ret = ArvadosResourceList.new
35 ret.results = arvados_api_client.unpack_api_response(res)
40 (group_class == 'project' or group_class == 'filter') ? 'Project' : super
43 def textile_attributes
52 arvados_api_client.api(self.class, "/#{self.uuid}/untrash", {"ensure_unique_name" => true})