diff options
author | Roger Meier <r.meier@siemens.com> | 2019-12-18 13:19:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-18 13:19:20 +0100 |
commit | 5a10eb3af52a8619d446616196dd3c0c3b91c395 (patch) | |
tree | aaeb69e98b5727eb192e9f7b75e1bb9550271d86 /gitlab/v4/objects.py | |
parent | 939e9d32e6e249e2a642d2bf3c1a34fde288c842 (diff) | |
parent | ac0ea91f22b08590f85a2b0ffc17cd41ae6e0ff7 (diff) | |
download | gitlab-5a10eb3af52a8619d446616196dd3c0c3b91c395.tar.gz |
Merge pull request #979 from python-gitlab/fix/project-snippets
Fix/project snippets
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 65be16d..88ede56 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -3667,8 +3667,11 @@ class ProjectSnippetManager(CRUDMixin, RESTManager): _path = "/projects/%(project_id)s/snippets" _obj_cls = ProjectSnippet _from_parent_attrs = {"project_id": "id"} - _create_attrs = (("title", "file_name", "code"), ("lifetime", "visibility")) - _update_attrs = (tuple(), ("title", "file_name", "code", "visibility")) + _create_attrs = (("title", "file_name", "content", "visibility"), ("description",)) + _update_attrs = ( + tuple(), + ("title", "file_name", "content", "visibility", "description"), + ) class ProjectTrigger(SaveMixin, ObjectDeleteMixin, RESTObject): |