summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-06-19 20:36:11 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2016-06-19 20:36:11 +0200
commitc55fd4b43d6576aff3c679b701c0f5be0cb98281 (patch)
treef3eb60ca3f44ddf6e86865f8e18a485eb92eb978 /gitlab/objects.py
parent73627a21bc94d6c37adaa36ef3ab0475a05a46f3 (diff)
downloadgitlab-c55fd4b43d6576aff3c679b701c0f5be0cb98281.tar.gz
update ProjectLabel attributes
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 8638b13..8231219 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1340,9 +1340,9 @@ class ProjectLabel(GitlabObject):
idAttr = 'name'
requiredDeleteAttrs = ['name']
requiredCreateAttrs = ['name', 'color']
- requiredUpdateAttrs = []
- # FIXME: new_name is only valid with update
- optionalCreateAttrs = ['new_name']
+ optionalCreateAttrs = ['description']
+ requiredUpdateAttrs = ['name']
+ optionalUpdateAttrs = ['new_name', 'color', 'description']
class ProjectLabelManager(BaseManager):