summaryrefslogtreecommitdiff
path: root/docs/gl_objects/remote_mirrors.rst
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-12-01 01:04:53 +0100
committerGitHub <noreply@github.com>2021-12-01 01:04:53 +0100
commit8d76826fa64460e504acc5924f859f8dbc246b42 (patch)
tree083fefada982c795e2415092794db429abb0c184 /docs/gl_objects/remote_mirrors.rst
parent5a1678f43184bd459132102cc13cf8426fe0449d (diff)
parent86ab04e54ea4175f10053decfad5086cda7aa024 (diff)
downloadgitlab-master.tar.gz
Merge pull request #1723 from python-gitlab/jlvillal/dead_mastermaster
Close-out `master` branch
Diffstat (limited to 'docs/gl_objects/remote_mirrors.rst')
-rw-r--r--docs/gl_objects/remote_mirrors.rst34
1 files changed, 0 insertions, 34 deletions
diff --git a/docs/gl_objects/remote_mirrors.rst b/docs/gl_objects/remote_mirrors.rst
deleted file mode 100644
index 9024228..0000000
--- a/docs/gl_objects/remote_mirrors.rst
+++ /dev/null
@@ -1,34 +0,0 @@
-######################
-Project Remote Mirrors
-######################
-
-Remote Mirrors allow you to set up push mirroring for a project.
-
-References
-==========
-
-* v4 API:
-
- + :class:`gitlab.v4.objects.ProjectRemoteMirror`
- + :class:`gitlab.v4.objects.ProjectRemoteMirrorManager`
- + :attr:`gitlab.v4.objects.Project.remote_mirrors`
-
-* GitLab API: https://docs.gitlab.com/ce/api/remote_mirrors.html
-
-Examples
---------
-
-Get the list of a project's remote mirrors::
-
- mirrors = project.remote_mirrors.list()
-
-Create (and enable) a remote mirror for a project::
-
- mirror = project.remote_mirrors.create({'url': 'https://gitlab.com/example.git',
- 'enabled': True})
-
-Update an existing remote mirror's attributes::
-
- mirror.enabled = False
- mirror.only_protected_branches = True
- mirror.save()