
    i                    L    d Z ddlmZ ddlmZ ddlmZmZ  G d d          ZdS )u  
Nom du script : gitlab_project_service.py
Chemin : /gitlab-bridge/app/services/gitlab_project_service.py
Description : Service de résolution d'un projet GitLab par son chemin namespace/projet.
Options éventuelles : Aucune.
Exemples d'utilisation : `GitLabProjectService(client).resolve_project(path)`.
Prérequis : Python 3.11+.
Auteur : Sylvain SCATTOLINI
Date de création / modification : 2026-03-25
Version : 1.1
    )annotations)GitLabClient)GitLabApiErrorProjectNotFoundErrorc                  "    e Zd ZdZddZdd
ZdS )GitLabProjectServiceu;   Résout un projet GitLab et masque les détails techniques.clientr   returnNonec                    || _         d S )N)r	   )selfr	   s     B/var/www/html/gitlab-bridge/app/services/gitlab_project_service.py__init__zGitLabProjectService.__init__   s        project_pathstrdictc                    	 | j                             |          S # t          $ r&}dt          |          v rt	                      | d }~ww xY w)NzHTTP 404)r	   get_project_by_pathr   r   r   )r   r   excs      r   resolve_projectz$GitLabProjectService.resolve_project   s^    	;22<@@@ 	 	 	SXX%%*,,#5	s    
A!AAN)r	   r   r
   r   )r   r   r
   r   )__name__
__module____qualname____doc__r   r    r   r   r   r      sB        EE        r   r   N)	r   
__future__r   app.clients.gitlab_clientr   app.core.exceptionsr   r   r   r   r   r   <module>r       s   
 
 # " " " " " 2 2 2 2 2 2 D D D D D D D D         r   