summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2020-06-25 23:00:19 +0200
committerGitHub <noreply@github.com>2020-06-25 23:00:19 +0200
commitbfb50348b636d2b70a15edf3b065c0406ed6d511 (patch)
treea29137046e12f313254b35831f0bccb1a35ea0de
parent1d82310da1a15f7172a3f87c2cf062bc0c17944d (diff)
parentb6339bf85f3ae11d31bf03c4132f6e7b7c343900 (diff)
downloadgitlab-bfb50348b636d2b70a15edf3b065c0406ed6d511.tar.gz
Merge pull request #1127 from gervasek/master
Add masked parameter for project-variable and group-variable
-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 9e9269d..6b47e08 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -1347,8 +1347,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", "variable_type"))
- _update_attrs = (("key", "value"), ("protected", "variable_type"))
+ _create_attrs = (("key", "value"), ("protected", "variable_type", "masked"))
+ _update_attrs = (("key", "value"), ("protected", "variable_type", "masked"))
class Group(SaveMixin, ObjectDeleteMixin, RESTObject):
@@ -4018,8 +4018,8 @@ class ProjectVariableManager(CRUDMixin, RESTManager):
_path = "/projects/%(project_id)s/variables"
_obj_cls = ProjectVariable
_from_parent_attrs = {"project_id": "id"}
- _create_attrs = (("key", "value"), ("protected", "variable_type"))
- _update_attrs = (("key", "value"), ("protected", "variable_type"))
+ _create_attrs = (("key", "value"), ("protected", "variable_type", "masked"))
+ _update_attrs = (("key", "value"), ("protected", "variable_type", "masked"))
class ProjectService(SaveMixin, ObjectDeleteMixin, RESTObject):