Support /projects/:id/job_token_scope/allowlist
Sjord opened this issue · comments
Sjoerd Langkemper commented
I would like to access the job token allow list through the Gitlab API.
Docs:
API endpoint:
GET/POST/DELETE /projects/:id/job_token_scope/allowlist
I currently have the following manager to access the job token scope allow list:
class ProjectJobTokenScopeAllowlistManager(
gitlab.mixins.ListMixin,
gitlab.mixins.CreateMixin,
gitlab.mixins.DeleteMixin,
gitlab.base.RESTManager,
):
_path = "/projects/{project_id}/job_token_scope/allowlist"
_obj_cls = gitlab.v4.objects.Project
_from_parent_attrs = {"project_id": "id"}
_create_attrs = gitlab.types.RequiredOptional(required=("target_project_id",))