Skip to content

Commit 938fc0a

Browse files
authored
Merge pull request #971 from jooola/ci_vars_type
feat: add more options for project/group ci variables manipulation
2 parents 59af4e4 + 4724c50 commit 938fc0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gitlab/v4/objects.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,8 +1184,8 @@ class GroupVariableManager(CRUDMixin, RESTManager):
11841184
_path = "/groups/%(group_id)s/variables"
11851185
_obj_cls = GroupVariable
11861186
_from_parent_attrs = {"group_id": "id"}
1187-
_create_attrs = (("key", "value"), ("protected",))
1188-
_update_attrs = (("key", "value"), ("protected",))
1187+
_create_attrs = (("key", "value"), ("protected", "variable_type"))
1188+
_update_attrs = (("key", "value"), ("protected", "variable_type"))
11891189

11901190

11911191
class Group(SaveMixin, ObjectDeleteMixin, RESTObject):
@@ -3716,8 +3716,8 @@ class ProjectVariableManager(CRUDMixin, RESTManager):
37163716
_path = "/projects/%(project_id)s/variables"
37173717
_obj_cls = ProjectVariable
37183718
_from_parent_attrs = {"project_id": "id"}
3719-
_create_attrs = (("key", "value"), tuple())
3720-
_update_attrs = (("key", "value"), tuple())
3719+
_create_attrs = (("key", "value"), ("protected", "variable_type"))
3720+
_update_attrs = (("key", "value"), ("protected", "variable_type"))
37213721

37223722

37233723
class ProjectService(SaveMixin, ObjectDeleteMixin, RESTObject):

0 commit comments

Comments
 (0)