@@ -8825,6 +8825,78 @@ sub delete_release_link {
88258825
88268826=back
88278827
8828+ =head2 Remote Mirrors
8829+
8830+ See L<https://docs.gitlab.com/ce/api/remote_mirrors.html> .
8831+
8832+ =over
8833+
8834+ =item remote_mirrors
8835+
8836+ my $mirrors = $api->remote_mirrors(
8837+ $project_id,
8838+ );
8839+
8840+ Sends a C<GET > request to C<projects/:project_id/remote_mirrors > and returns the decoded response content.
8841+
8842+ =cut
8843+
8844+ sub remote_mirrors {
8845+ my $self = shift ;
8846+ croak ' remote_mirrors must be called with 1 arguments' if @_ != 1;
8847+ croak ' The #1 argument ($project_id) to remote_mirrors must be a scalar' if ref ($_ [0]) or (!defined $_ [0]);
8848+ my $options = {};
8849+ return $self -> _call_rest_client( ' GET' , ' projects/:project_id/remote_mirrors' , [@_ ], $options );
8850+ }
8851+
8852+ =item create_remote_mirror
8853+
8854+ my $mirror = $api->create_remote_mirror(
8855+ $project_id,
8856+ \%params,
8857+ );
8858+
8859+ Sends a C<POST > request to C<projects/:project_id/remote_mirrors > and returns the decoded response content.
8860+
8861+ =cut
8862+
8863+ sub create_remote_mirror {
8864+ my $self = shift ;
8865+ croak ' create_remote_mirror must be called with 1 to 2 arguments' if @_ < 1 or @_ > 2;
8866+ croak ' The #1 argument ($project_id) to create_remote_mirror must be a scalar' if ref ($_ [0]) or (!defined $_ [0]);
8867+ croak ' The last argument (\%params) to create_remote_mirror must be a hash ref' if defined ($_ [1]) and ref ($_ [1]) ne ' HASH' ;
8868+ my $params = (@_ == 2) ? pop () : undef ;
8869+ my $options = {};
8870+ $options -> {content } = $params if defined $params ;
8871+ return $self -> _call_rest_client( ' POST' , ' projects/:project_id/remote_mirrors' , [@_ ], $options );
8872+ }
8873+
8874+ =item edit_remote_mirror
8875+
8876+ my $mirror = $api->edit_remote_mirror(
8877+ $project_id,
8878+ $mirror_id,
8879+ \%params,
8880+ );
8881+
8882+ Sends a C<PUT > request to C<projects/:project_id/remote_mirrors/:mirror_id > and returns the decoded response content.
8883+
8884+ =cut
8885+
8886+ sub edit_remote_mirror {
8887+ my $self = shift ;
8888+ croak ' edit_remote_mirror must be called with 2 to 3 arguments' if @_ < 2 or @_ > 3;
8889+ croak ' The #1 argument ($project_id) to edit_remote_mirror must be a scalar' if ref ($_ [0]) or (!defined $_ [0]);
8890+ croak ' The #2 argument ($mirror_id) to edit_remote_mirror must be a scalar' if ref ($_ [1]) or (!defined $_ [1]);
8891+ croak ' The last argument (\%params) to edit_remote_mirror must be a hash ref' if defined ($_ [2]) and ref ($_ [2]) ne ' HASH' ;
8892+ my $params = (@_ == 3) ? pop () : undef ;
8893+ my $options = {};
8894+ $options -> {content } = $params if defined $params ;
8895+ return $self -> _call_rest_client( ' PUT' , ' projects/:project_id/remote_mirrors/:mirror_id' , [@_ ], $options );
8896+ }
8897+
8898+ =back
8899+
88288900=head2 Repositories
88298901
88308902See L<https://docs.gitlab.com/ce/api/repositories.html> .
0 commit comments