From 2790aa31b8163ac317d4c4df74910d13d55144c9 Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Thu, 2 Apr 2020 17:16:14 +0200 Subject: [PATCH 1/2] chore(group): update group_manager attributes --- gitlab/v4/objects.py | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 8852a1e81..55979c76e 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -1408,15 +1408,27 @@ class GroupManager(CRUDMixin, RESTManager): "statistics", "owned", "with_custom_attributes", + "min_access_level", ) _create_attrs = ( ("name", "path"), ( "description", + "membership_lock", "visibility", - "parent_id", + "share_with_group_lock", + "require_two_factor_authentication", + "two_factor_grace_period", + "project_creation_level", + "auto_devops_enabled", + "subgroup_creation_level", + "emails_disabled", + "avatar", + "mentions_disabled", "lfs_enabled", "request_access_enabled", + "parent_id", + "default_branch_protection", ), ) _update_attrs = ( @@ -1425,9 +1437,22 @@ class GroupManager(CRUDMixin, RESTManager): "name", "path", "description", + "membership_lock", + "share_with_group_lock", "visibility", + "request_access_enabled", + "mentions_disabled", + "require_two_factor_authentication", + "two_factor_grace_period", + "project_creation_level", + "auto_devops_enabled", + "subgroup_creation_level", + "emails_disabled", + "avatar", + "mentions_disabled", "lfs_enabled", "request_access_enabled", + "default_branch_protection", ), ) From 5111b6bdf239057061a1f389b5d89ea69a1285a5 Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Mon, 6 Apr 2020 08:38:27 +0200 Subject: [PATCH 2/2] fix(objects): correct group objects Co-Authored-By: Nejc Habjan --- gitlab/v4/objects.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 55979c76e..0b9594404 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -1440,8 +1440,6 @@ class GroupManager(CRUDMixin, RESTManager): "membership_lock", "share_with_group_lock", "visibility", - "request_access_enabled", - "mentions_disabled", "require_two_factor_authentication", "two_factor_grace_period", "project_creation_level",