summaryrefslogtreecommitdiff
path: root/gitlab/v4
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2019-12-16 10:36:47 +0100
committerGitHub <noreply@github.com>2019-12-16 10:36:47 +0100
commit938fc0ae1eff7625d18cdf11fc019d83da02ba0c (patch)
tree65991f266f6a12b027c9211279ee7f13b316436f /gitlab/v4
parent59af4e434a669cd8c7dd8b8cb9aa0155aef45ca9 (diff)
parent4724c50e9ec0310432c70f07079b1e03ab3cc666 (diff)
downloadgitlab-938fc0ae1eff7625d18cdf11fc019d83da02ba0c.tar.gz
Merge pull request #971 from jooola/ci_vars_type
feat: add more options for project/group ci variables manipulation
Diffstat (limited to 'gitlab/v4')
-rw-r--r--gitlab/v4/objects.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 91b946d..2b5ed1d 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):
@@ -3716,8 +3716,8 @@ class ProjectVariableManager(CRUDMixin, RESTManager):
_path = "/projects/%(project_id)s/variables"
_obj_cls = ProjectVariable
_from_parent_attrs = {"project_id": "id"}
- _create_attrs = (("key", "value"), tuple())
- _update_attrs = (("key", "value"), tuple())
+ _create_attrs = (("key", "value"), ("protected", "variable_type"))
+ _update_attrs = (("key", "value"), ("protected", "variable_type"))
class ProjectService(SaveMixin, ObjectDeleteMixin, RESTObject):