FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(api): add exclusive GET attrs for /projects/:id/members · python-gitlab/python-gitlab@e637808 · GitHub

Repository navigation

Commit e637808

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL