3 @qhc^ã@sLddlmZddlmZmZmZddgZGdd„deƒZGdd„deƒZ dS)é)Ú exceptions)Ú RESTManagerÚ RESTObjectÚRESTObjectListÚ LDAPGroupÚLDAPGroupManagerc@seZdZdZdS)rN)Ú__name__Ú __module__Ú __qualname__Z_id_attr©r r úU/home/ec2-user/environment/venv/lib/python3.6/dist-packages/gitlab/v4/objects/ldap.pyr sc@s,eZdZdZeZdZejej ƒdd„ƒZ dS)rz /ldap/groupsÚsearchÚproviderc sz|jƒ}ˆjjr |jdˆjjƒd|kr6d|d}nˆj}ˆjj|f|Ž}t|tƒrh‡fdd„|DƒStˆˆj |ƒSdS)aÐRetrieve a list of objects. Args: all (bool): If True, return all the items, without pagination per_page (int): Number of items to retrieve per request page (int): ID of the page to return (starts with page 1) as_list (bool): If set to False and no pagination option is defined, return a generator instead of a list **kwargs: Extra options to send to the server (e.g. sudo) Returns: list: The list of objects, or a generator if `as_list` is False Raises: GitlabAuthenticationError: If authentication is not correct GitlabListError: If the server cannot perform the request Úper_pagerz/ldap/%s/groupscsg|]}ˆjˆ|ƒ‘qSr )Ú_obj_cls)Ú.0Úitem)Úselfr r ú 1sz)LDAPGroupManager.list..N) ÚcopyÚgitlabrÚ setdefaultÚ_pathZ http_listÚ isinstanceÚlistrr)rÚkwargsÚdataÚpathÚobjr )rr rs zLDAPGroupManager.listN)r r) rr r rrrZ _list_filtersÚexcZ on_http_errorZGitlabListErrorrr r r r rsN) rrrZ gitlab.baserrrÚ__all__rrr r r r Ús