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/environments.py | |
parent | 005ba93074d391f818c39e46390723a0d0d16098 (diff) | |
download | gitlab-d9126cd802dd3cfe529fa940300113c4ead3054b.tar.gz |
fix: support array types for most resources
Diffstat (limited to 'gitlab/v4/objects/environments.py')
-rw-r--r-- | gitlab/v4/objects/environments.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/v4/objects/environments.py b/gitlab/v4/objects/environments.py index a8bd9d5..1961f8a 100644 --- a/gitlab/v4/objects/environments.py +++ b/gitlab/v4/objects/environments.py @@ -13,7 +13,7 @@ from gitlab.mixins import ( SaveMixin, UpdateMixin, ) -from gitlab.types import RequiredOptional +from gitlab.types import ArrayAttribute, RequiredOptional __all__ = [ "ProjectEnvironment", @@ -77,6 +77,7 @@ class ProjectProtectedEnvironmentManager( ), optional=("required_approval_count", "approval_rules"), ) + _types = {"deploy_access_levels": ArrayAttribute, "approval_rules": ArrayAttribute} def get( self, id: Union[str, int], lazy: bool = False, **kwargs: Any |