summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorRoger Meier <r.meier@siemens.com>2019-12-18 13:19:20 +0100
committerGitHub <noreply@github.com>2019-12-18 13:19:20 +0100
commit5a10eb3af52a8619d446616196dd3c0c3b91c395 (patch)
treeaaeb69e98b5727eb192e9f7b75e1bb9550271d86 /gitlab/v4/objects.py
parent939e9d32e6e249e2a642d2bf3c1a34fde288c842 (diff)
parentac0ea91f22b08590f85a2b0ffc17cd41ae6e0ff7 (diff)
downloadgitlab-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.py7
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):