Content-Length: 299630 | pFad | https://github.com/python-gitlab/python-gitlab/commit/2cf430b9c55c88f1d43fd31122a022dda0a88700

E3 fix(mixins): register service account token classes in RotateMixin CL… · python-gitlab/python-gitlab@2cf430b · GitHub
Skip to content

Commit 2cf430b

Browse files
Frank KlaassenJohnVillalovos
authored andcommitted
fix(mixins): register service account token classes in RotateMixin CLI actions
Add GroupServiceAccountAccessTokenManager, ProjectServiceAccountAccessTokenManager, GroupServiceAccountAccessToken, and ProjectServiceAccountAccessToken to the cli.register_custom_action cls_names in RotateMixin and ObjectRotateMixin.
1 parent feb6ced commit 2cf430b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

gitlab/mixins.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,8 @@ class RotateMixin(base.RESTManager[base.TObjCls]):
619619
"PersonalAccessTokenManager",
620620
"GroupAccessTokenManager",
621621
"ProjectAccessTokenManager",
622+
"GroupServiceAccountAccessTokenManager",
623+
"ProjectServiceAccountAccessTokenManager",
622624
),
623625
optional=("expires_at",),
624626
)
@@ -656,7 +658,13 @@ class ObjectRotateMixin(_RestObjectBase):
656658
manager: base.RESTManager[Any]
657659

658660
@cli.register_custom_action(
659-
cls_names=("PersonalAccessToken", "GroupAccessToken", "ProjectAccessToken"),
661+
cls_names=(
662+
"PersonalAccessToken",
663+
"GroupAccessToken",
664+
"ProjectAccessToken",
665+
"GroupServiceAccountAccessToken",
666+
"ProjectServiceAccountAccessToken",
667+
),
660668
optional=("expires_at",),
661669
)
662670
@exc.on_http_error(exc.GitlabRotateError)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python-gitlab/python-gitlab/commit/2cf430b9c55c88f1d43fd31122a022dda0a88700

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy