diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-05-23 22:28:01 +0200 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-05-23 22:28:01 +0200 |
| commit | 8b75bc8d96878e5d058ebd5ec5c82383a0d92573 (patch) | |
| tree | 96803a17a45c1b5b1ca88ae82dbe4a575dccd6e6 /gitlab | |
| parent | 90c895824aaf84a9a77f9a3fd18db6d16b73908d (diff) | |
| download | gitlab-8b75bc8d96878e5d058ebd5ec5c82383a0d92573.tar.gz | |
[v4] Rename branch_name to branch
Diffstat (limited to 'gitlab')
| -rw-r--r-- | gitlab/v4/objects.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index f46495c..0e929b8 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -584,7 +584,7 @@ class ProjectBranch(GitlabObject): idAttr = 'name' canUpdate = False requiredUrlAttrs = ['project_id'] - requiredCreateAttrs = ['branch_name', 'ref'] + requiredCreateAttrs = ['branch', 'ref'] def protect(self, protect=True, **kwargs): """Protects the branch.""" @@ -741,7 +741,7 @@ class ProjectCommit(GitlabObject): canDelete = False canUpdate = False requiredUrlAttrs = ['project_id'] - requiredCreateAttrs = ['branch_name', 'commit_message', 'actions'] + requiredCreateAttrs = ['branch', 'commit_message', 'actions'] optionalCreateAttrs = ['author_email', 'author_name'] shortPrintAttr = 'title' managers = ( @@ -1489,10 +1489,10 @@ class ProjectFile(GitlabObject): canList = False requiredUrlAttrs = ['project_id'] requiredGetAttrs = ['file_path', 'ref'] - requiredCreateAttrs = ['file_path', 'branch_name', 'content', + requiredCreateAttrs = ['file_path', 'branch', 'content', 'commit_message'] optionalCreateAttrs = ['encoding'] - requiredDeleteAttrs = ['branch_name', 'commit_message', 'file_path'] + requiredDeleteAttrs = ['branch', 'commit_message', 'file_path'] shortPrintAttr = 'file_path' getRequiresId = False |
