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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy