8000 feat(api): Add instance level service accounts (EE) · python-gitlab/python-gitlab@c20565d · GitHub
[go: up one dir, main page]

Skip to content

Commit c20565d

Browse files
author
Rolf Offermanns
committed
feat(api): Add instance level service accounts (EE)
Fixes #2812.
1 parent 515a8a2 commit c20565d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

gitlab/v4/objects/service_accounts.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
from gitlab.mixins import CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin
33
from gitlab.types import RequiredOptional
44

5-
__all__ = ["GroupServiceAccount", "GroupServiceAccountManager"]
5+
__all__ = [
6+
"ServiceAccount",
7+
"ServiceAccountManager",
8+
"GroupServiceAccount",
9+
"GroupServiceAccountManager"
10+
]
11+
12+
13+
class ServiceAccount(RESTObject):
14+
pass
15+
16+
17+
class ServiceAccountManager(CreateMixin, ListMixin, RESTManager):
18+
_path = "/service_accounts"
19+
_obj_cls = ServiceAccount
20+
_create_attrs = RequiredOptional(
21+
optional=("name", "username", "email"),
22+
)
623

724

825
class GroupServiceAccount(ObjectDeleteMixin, RESTObject):

0 commit comments

Comments
 (0)
0