diff options
author | Max Wittig <max.wittig@siemens.com> | 2019-12-18 12:13:47 +0100 |
---|---|---|
committer | Max Wittig <max.wittig@siemens.com> | 2019-12-18 12:57:02 +0100 |
commit | e104e213b16ca702f33962d770784f045f36cf10 (patch) | |
tree | 32905622c7ef820463860892b2a07234e1c91fa6 /gitlab/v4 | |
parent | 939e9d32e6e249e2a642d2bf3c1a34fde288c842 (diff) | |
download | gitlab-e104e213b16ca702f33962d770784f045f36cf10.tar.gz |
fix(projects): adjust snippets to match the API
Diffstat (limited to 'gitlab/v4')
-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): |