Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support /projects/:id/job_token_scope/allowlist #2762

Closed
Sjord opened this issue Jan 11, 2024 · 0 comments · Fixed by #2816
Closed

Support /projects/:id/job_token_scope/allowlist #2762

Sjord opened this issue Jan 11, 2024 · 0 comments · Fixed by #2816

Comments

@Sjord
Copy link
Contributor

Sjord commented Jan 11, 2024

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",))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant