Skip to content

Commit 772e79a

Browse files
committed
feat(api): Add support for query ldap groups links
1 parent 7ea4ddc commit 772e79a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

gitlab/v4/objects/groups.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
"GroupDescendantGroupManager",
3939
"GroupSubgroup",
4040
"GroupSubgroupManager",
41+
"GroupLdapLinks",
42+
"GroupLdapLinksManager",
4143
]
4244

4345

@@ -71,6 +73,7 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject):
7173
subgroups: "GroupSubgroupManager"
7274
variables: GroupVariableManager
7375
wikis: GroupWikiManager
76+
ldap_group_links: "GroupLdapLinksManager"
7477

7578
@cli.register_custom_action("Group", ("project_id",))
7679
@exc.on_http_error(exc.GitlabTransferProjectError)
@@ -320,6 +323,16 @@ class GroupSubgroupManager(ListMixin, RESTManager):
320323
_types = {"skip_groups": types.ListAttribute}
321324

322325

326+
class GroupLdapLinks(RESTObject):
327+
pass
328+
329+
330+
class GroupLdapLinksManager(ListMixin, RESTManager):
331+
_path = "/groups/%(group_id)s/ldap_group_links"
332+
_obj_cls = GroupLdapLinks
333+
_from_parent_attrs = {"group_id": "id"}
334+
335+
323336
class GroupDescendantGroup(RESTObject):
324337
pass
325338

0 commit comments

Comments
 (0)