Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add more options for project/group ci variables manipulation #971

Merged
merged 2 commits into from Dec 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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