Skip to content

Commit

Permalink
fix: add masked parameter for variables command
Browse files Browse the repository at this point in the history
  • Loading branch information
gervasek committed Jun 25, 2020
1 parent 1d82310 commit b6339bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gitlab/v4/objects.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b6339bf

Please sign in to comment.