diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 89e3259b0..3be8846ff 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):