diff options
author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-07-28 12:54:46 +0200 |
---|---|---|
committer | John Villalovos <john@sodarock.com> | 2022-07-28 07:41:36 -0700 |
commit | d9126cd802dd3cfe529fa940300113c4ead3054b (patch) | |
tree | 973e9029a685ce9dbc3ea1f3ba35b356d9f3562d /gitlab/v4/objects/deploy_tokens.py | |
parent | 005ba93074d391f818c39e46390723a0d0d16098 (diff) | |
download | gitlab-d9126cd802dd3cfe529fa940300113c4ead3054b.tar.gz |
fix: support array types for most resources
Diffstat (limited to 'gitlab/v4/objects/deploy_tokens.py')
-rw-r--r-- | gitlab/v4/objects/deploy_tokens.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gitlab/v4/objects/deploy_tokens.py b/gitlab/v4/objects/deploy_tokens.py index 32bb5fe..e35bf22 100644 --- a/gitlab/v4/objects/deploy_tokens.py +++ b/gitlab/v4/objects/deploy_tokens.py @@ -48,7 +48,8 @@ class GroupDeployTokenManager(RetrieveMixin, CreateMixin, DeleteMixin, RESTManag "username", ), ) - _types = {"scopes": types.CommaSeparatedListAttribute} + _list_filters = ("scopes",) + _types = {"scopes": types.ArrayAttribute} def get( self, id: Union[str, int], lazy: bool = False, **kwargs: Any @@ -74,7 +75,8 @@ class ProjectDeployTokenManager(RetrieveMixin, CreateMixin, DeleteMixin, RESTMan "username", ), ) - _types = {"scopes": types.CommaSeparatedListAttribute} + _list_filters = ("scopes",) + _types = {"scopes": types.ArrayAttribute} def get( self, id: Union[str, int], lazy: bool = False, **kwargs: Any |