From c8a04dc2cc327d5f047a37ad13df0d75e28b1bfe Mon Sep 17 00:00:00 2001 From: Manu Date: Tue, 13 May 2025 17:54:14 +0200 Subject: [PATCH 1/2] docs(job_token_scope): Fix typos/inconsistency --- docs/gl_objects/job_token_scope.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/gl_objects/job_token_scope.rst b/docs/gl_objects/job_token_scope.rst index 0d7771d9f..8857e2251 100644 --- a/docs/gl_objects/job_token_scope.rst +++ b/docs/gl_objects/job_token_scope.rst @@ -82,13 +82,13 @@ Get a project's CI/CD job token inbound groups allowlist:: allowlist = scope.groups_allowlist.list(get_all=True) -Add a project to the project's inbound groups allowlist:: +Add a group to the project's inbound groups allowlist:: - allowed_project = scope.groups_allowlist.create({"target_project_id": 42}) + allowed_group = scope.groups_allowlist.create({"target_group_id": 42}) -Remove a project from the project's inbound agroups llowlist:: +Remove a group from the project's inbound groups allowlist:: - allowed_project.delete() + allowed_group.delete() # or directly using a Group ID scope.groups_allowlist.delete(42) @@ -97,4 +97,3 @@ Remove a project from the project's inbound agroups llowlist:: Similar to above, the ID attributes you receive from the create and list APIs are not consistent. To safely retrieve the ID of the allowlisted group regardless of how the object was created, always use its ``.get_id()`` method. - From 729d3402588a7af5ea32abad8dee6597e2786b42 Mon Sep 17 00:00:00 2001 From: Manu Date: Tue, 13 May 2025 17:55:58 +0200 Subject: [PATCH 2/2] Update docs/gl_objects/job_token_scope.rst --- docs/gl_objects/job_token_scope.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/gl_objects/job_token_scope.rst b/docs/gl_objects/job_token_scope.rst index 8857e2251..baabd571a 100644 --- a/docs/gl_objects/job_token_scope.rst +++ b/docs/gl_objects/job_token_scope.rst @@ -97,3 +97,4 @@ Remove a group from the project's inbound groups allowlist:: Similar to above, the ID attributes you receive from the create and list APIs are not consistent. To safely retrieve the ID of the allowlisted group regardless of how the object was created, always use its ``.get_id()`` method. +