From 6605d7a119a0f7dc762d5ed4c0704b21b1425078 Mon Sep 17 00:00:00 2001 From: Kartik Kumar Date: Sun, 1 Sep 2024 18:49:49 +0530 Subject: [PATCH] feat(api): add DeleteMixin, ListMixin to GroupServiceAccountManager and ObjectDeleteMixin to GroupServiceAccount --- gitlab/v4/objects/service_accounts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitlab/v4/objects/service_accounts.py b/gitlab/v4/objects/service_accounts.py index c44c2cde3..e73dd7bd4 100644 --- a/gitlab/v4/objects/service_accounts.py +++ b/gitlab/v4/objects/service_accounts.py @@ -1,15 +1,15 @@ from gitlab.base import RESTManager, RESTObject -from gitlab.mixins import CreateMixin +from gitlab.mixins import CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin from gitlab.types import RequiredOptional __all__ = ["GroupServiceAccount", "GroupServiceAccountManager"] -class GroupServiceAccount(RESTObject): +class GroupServiceAccount(ObjectDeleteMixin, RESTObject): pass -class GroupServiceAccountManager(CreateMixin, RESTManager): +class GroupServiceAccountManager(CreateMixin, DeleteMixin, ListMixin, RESTManager): _path = "/groups/{group_id}/service_accounts" _obj_cls = GroupServiceAccount _from_parent_attrs = {"group_id": "id"}