In gitlab 15.6 gitlab finally added api support to update protected branch settings, so ProjectProtectedBranch should be updated accordingly https://gitlab.com/gitlab-org/gitlab/-/issues/20229/