8000 feat(api): add exclusive GET attrs for /projects/:id/members · python-gitlab/python-gitlab@e637808 · GitHub
[go: up one dir, main page]

Skip to content

Commit e637808

Browse files
dedloccnejch
authored andcommitted
feat(api): add exclusive GET attrs for /projects/:id/members
1 parent d6b1b0a commit e637808

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab/v4/objects/members.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ class ProjectMemberManager(CRUDMixin, RESTManager):
102102
_obj_cls = ProjectMember
103103
_from_parent_attrs = {"project_id": "id"}
104104
_create_attrs = RequiredOptional(
105-
required=("access_level", "user_id"),
105+
required=("access_level",),
106106
optional=("expires_at", "tasks_to_be_done"),
107+
exclusive=("username", "user_id"),
107108
)
108109
_update_attrs = RequiredOptional(
109110
required=("access_level",), optional=("expires_at",)

0 commit comments

Comments
 (0)
0