docs(job_token_scope): fix typo/inconsistency · python-gitlab/python-gitlab@203bd92

Original file line numberDiff line numberDiff line change

@@ -82,13 +82,13 @@ Get a project's CI/CD job token inbound groups allowlist::

8282
8383

allowlist = scope.groups_allowlist.list(get_all=True)

8484
85-

Add a project to the project's inbound groups allowlist::

85+

Add a group to the project's inbound groups allowlist::

8686
87-

allowed_project = scope.groups_allowlist.create({"target_project_id": 42})

87+

allowed_group = scope.groups_allowlist.create({"target_group_id": 42})

8888
89-

Remove a project from the project's inbound agroups llowlist::

89+

Remove a group from the project's inbound groups allowlist::

9090
91-

allowed_project.delete()

91+

allowed_group.delete()

9292

# or directly using a Group ID

9393

scope.groups_allowlist.delete(42)

9494

@@ -97,4 +97,3 @@ Remove a project from the project's inbound agroups llowlist::

9797

Similar to above, the ID attributes you receive from the create and list

9898

APIs are not consistent. To safely retrieve the ID of the allowlisted group

9999

regardless of how the object was created, always use its ``.get_id()`` method.

100-