Add `allowed_to_unprotect` and `unprotect_access_level` fields to branch protection
Created by: beekeep
Description
Closes #878 (closed).
Adds unprotect_access_level
and allowed_to_unprotect
attributes to the branch protection resource, which should bring the resource in line with the API. Also changes merge_access_level
and push_access_level
to optional, as they were previously marked as required, but they are not required in the API. A default is also configured, to match the default that is set via the API.
PR Checklist Acknowledgement
-
I acknowledge that all of the following items are true, where applicable: - Resource attributes match 1:1 the names and structure of the API resource in the GitLab API documentation.
-
Examples are updated with:
- A *.tf file for the resource/s with at least one usage example
- A *.sh file for the resource/s with an import example (if applicable)
- New resources have at minimum a basic test with three steps:
- Create the resource
- Update the attributes
- Import the resource
- No new
//lintignore
comments were copied from existing code. (Linter rules are meant to be enforced on new code.)