Skip to content

Commit 2322542

Browse files
committed
Add support for query ldap groups links
1 parent 227607c commit 2322542

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

gitlab/v4/objects/groups.py

Lines changed: 11 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,14 @@ class GroupSubgroupManager(ListMixin, RESTManager):
320323
_types = {"skip_groups": types.ListAttribute}
321324

322325

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

0 commit comments

Comments
 (0)