Copyright | (c) Rob Stewart Heriot-Watt University 2019 |
---|---|
License | BSD3 |
Maintainer | robstewart57@gmail.com |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data AccessLevel
- = Guest
- | Reporter
- | Developer
- | Maintainer
- | Owner
- membersOfProject :: Project -> GitLab [Member]
- membersOfProject' :: Int -> GitLab (Either Status [Member])
- addMemberToProject :: Project -> AccessLevel -> User -> GitLab (Either Status Member)
- addMemberToProject' :: Int -> AccessLevel -> Int -> GitLab (Either Status Member)
- addMembersToProject :: Project -> AccessLevel -> [User] -> GitLab [Either Status Member]
- addMembersToProject' :: Int -> AccessLevel -> [Int] -> GitLab [Either Status Member]
Documentation
data AccessLevel Source #
the access levels for project members. See https://docs.gitlab.com/ee/user/permissions.html#project-members-permissions
Instances
Show AccessLevel Source # | |
Defined in GitLab.API.Members showsPrec :: Int -> AccessLevel -> ShowS # show :: AccessLevel -> String # showList :: [AccessLevel] -> ShowS # |
membersOfProject' :: Int -> GitLab (Either Status [Member]) Source #
the members of a project given its ID.
adds a user to a project with the given access level. Returns 'Right Member' for each successful action, otherwise it returns 'Left Status'.
adds a user to a project with the given access level, given the
project's ID and the user's ID. Returns Right Member
for each
successful action, otherwise it returns Left Status
.
:: Project | the project |
-> AccessLevel | level of access |
-> [User] | users to add to the project |
-> GitLab [Either Status Member] |
adds a list of users to a project with the given access level. Returns 'Right Member' for each successful action, otherwise it returns 'Left Status'.
:: Int | project ID |
-> AccessLevel | level of acces |
-> [Int] | IDs of users to add to the project |
-> GitLab [Either Status Member] |
adds a list of users to a project with the given access level,
given the project's ID and the user IDs. Returns Right Member
for
each successful action, otherwise it returns Left Status
.