Skip to content

Commit b6339bf

Browse files
committed
fix: add masked parameter for variables command
1 parent 1d82310 commit b6339bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gitlab/v4/objects.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1347,8 +1347,8 @@ class GroupVariableManager(CRUDMixin, RESTManager):
13471347
_path = "/groups/%(group_id)s/variables"
13481348
_obj_cls = GroupVariable
13491349
_from_parent_attrs = {"group_id": "id"}
1350-
_create_attrs = (("key", "value"), ("protected", "variable_type"))
1351-
_update_attrs = (("key", "value"), ("protected", "variable_type"))
1350+
_create_attrs = (("key", "value"), ("protected", "variable_type", "masked"))
1351+
_update_attrs = (("key", "value"), ("protected", "variable_type", "masked"))
13521352

13531353

13541354
class Group(SaveMixin, ObjectDeleteMixin, RESTObject):
@@ -4018,8 +4018,8 @@ class ProjectVariableManager(CRUDMixin, RESTManager):
40184018
_path = "/projects/%(project_id)s/variables"
40194019
_obj_cls = ProjectVariable
40204020
_from_parent_attrs = {"project_id": "id"}
4021-
_create_attrs = (("key", "value"), ("protected", "variable_type"))
4022-
_update_attrs = (("key", "value"), ("protected", "variable_type"))
4021+
_create_attrs = (("key", "value"), ("protected", "variable_type", "masked"))
4022+
_update_attrs = (("key", "value"), ("protected", "variable_type", "masked"))
40234023

40244024

40254025
class ProjectService(SaveMixin, ObjectDeleteMixin, RESTObject):

0 commit comments

Comments
 (0)