@@ -608,6 +608,13 @@ def mirror_pull(self, **kwargs: Any) -> None:
608
608
GitlabAuthenticationError: If authentication is not correct
609
609
GitlabCreateError: If the server failed to perform the request
610
610
"""
611
+ utils .warn (
612
+ message = (
613
+ "project.mirror_pull() is deprecated and will be removed in a "
614
+ "future major version. Use project.pull_mirror.start() instead."
615
+ ),
616
+ category = DeprecationWarning ,
617
+ )
611
618
path = f"/projects/{ self .encoded_id } /mirror/pull"
612
619
self .manager .gitlab .http_post (path ,** kwargs )
613
620
@@ -628,6 +635,13 @@ def mirror_pull_details(self, **kwargs: Any) -> Dict[str, Any]:
628
635
Returns:
629
636
dict of the parsed json returned by the server
630
637
"""
638
+ utils .warn (
639
+ message = (
640
+ "project.mirror_pull_details() is deprecated and will be removed in a "
641
+ "future major version. Use project.pull_mirror.get() instead."
642
+ ),
643
+ category = DeprecationWarning ,
644
+ )
631
645
path = f"/projects/{ self .encoded_id } /mirror/pull"
632
646
result = self .manager .gitlab .http_get (path ,** kwargs )
633
647
if TYPE_CHECKING :