Skip to content

Commit

Permalink
Merge pull request #971 from jooola/ci_vars_type
Browse files Browse the repository at this point in the history
feat: add more options for project/group ci variables manipulation
  • Loading branch information
max-wittig committed Dec 16, 2019
2 parents 59af4e4 + 4724c50 commit 938fc0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gitlab/v4/objects.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 938fc0a

Please sign in to comment.