Files
netsec/env/lib/python3.12/site-packages/gitlab/v4/objects/service_accounts.py
2024-12-09 18:22:38 +09:00

19 lines
603 B
Python

from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin
from gitlab.types import RequiredOptional
__all__ = ["GroupServiceAccount", "GroupServiceAccountManager"]
class GroupServiceAccount(ObjectDeleteMixin, RESTObject):
pass
class GroupServiceAccountManager(CreateMixin, DeleteMixin, ListMixin, RESTManager):
_path = "/groups/{group_id}/service_accounts"
_obj_cls = GroupServiceAccount
_from_parent_attrs = {"group_id": "id"}
_create_attrs = RequiredOptional(
optional=("name", "username"),
)