Skip to content

Commit 0986c93

Browse files
committed
feat: add variable_type to groups ci variables
This adds the ci variables types for create/update requests. See https://docs.gitlab.com/ee/api/group_level_variables.html#create-variable
1 parent 3e2d694 commit 0986c93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitlab/v4/objects.py

Lines changed: 2 additions & 2 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):

0 commit comments

Comments
 (0)