summaryrefslogtreecommitdiff
path: root/gitlab/v4
diff options
context:
space:
mode:
authorjo <ljonas@riseup.net>2019-12-12 17:24:52 +0100
committerjo <ljonas@riseup.net>2019-12-12 17:24:52 +0100
commit0986c93177cde1f3be77d4f73314c37b14bba011 (patch)
treefcc5f433b6e20ec94bfd8e1c9931e1849a4ff2b2 /gitlab/v4
parent3e2d69417aa8c6b043ee99fea5f8d7e31a2ba3e8 (diff)
downloadgitlab-0986c93177cde1f3be77d4f73314c37b14bba011.tar.gz
feat: add variable_type to groups ci variables
This adds the ci variables types for create/update requests. See https://docs.gitlab.com/ee/api/group_level_variables.html#create-variable
Diffstat (limited to 'gitlab/v4')
-rw-r--r--gitlab/v4/objects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 89e3259..f25a1df 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -1184,8 +1184,8 @@ class GroupVariableManager(CRUDMixin, RESTManager):
_path = "/groups/%(group_id)s/variables"
_obj_cls = GroupVariable
_from_parent_attrs = {"group_id": "id"}
- _create_attrs = (("key", "value"), ("protected",))
- _update_attrs = (("key", "value"), ("protected",))
+ _create_attrs = (("key", "value"), ("protected", "variable_type"))
+ _update_attrs = (("key", "value"), ("protected", "variable_type"))
class Group(SaveMixin, ObjectDeleteMixin, RESTObject):