diff options
author | Eric Sabouraud <esabouraud@users.noreply.github.com> | 2018-12-07 18:10:41 +0100 |
---|---|---|
committer | Eric Sabouraud <esabouraud@users.noreply.github.com> | 2018-12-07 18:10:41 +0100 |
commit | cebbbf67f2529bd9380276ac28abe726d3a57a81 (patch) | |
tree | f80e780e1bb87f0c2f5ba444d728e985cd2868f8 /gitlab/v4/objects.py | |
parent | 728f2dd1677522a4fcca76769ed127146c034c29 (diff) | |
download | gitlab-cebbbf67f2529bd9380276ac28abe726d3a57a81.tar.gz |
Add access control options to protected branch creation
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 04444f7..fd673b5 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -3117,7 +3117,10 @@ class ProjectProtectedBranchManager(NoUpdateMixin, RESTManager): _path = '/projects/%(project_id)s/protected_branches' _obj_cls = ProjectProtectedBranch _from_parent_attrs = {'project_id': 'id'} - _create_attrs = (('name', ), ('push_access_level', 'merge_access_level')) + _create_attrs = (('name', ), + ('push_access_level', 'merge_access_level', + 'unprotect_access_level', 'allowed_to_push', + 'allowed_to_merge', 'allowed_to_unprotect')) class ProjectRunner(ObjectDeleteMixin, RESTObject): |